def CreateUserSecret(user):
 secret = base64.b32encode(os.urandom(_SECRET_BYTES))
 secrets.PutSecret(_SecretName(user), secret)
 DisplayUserSecret(user)

def CreateUserSecret ( user ) : secret = base64 . b32encode ( os . urandom ( _SECRET_BYTES ) ) secrets . PutSecret ( _SecretName ( user ) , secret ) DisplayUserSecret ( user )
generates a random user secret and stores it to the secrets database .