def encrypt(password):
    '\n    Take a password string, encrypt it with Fernet symmetric encryption,\n    and return the result (bytes), with the decryption key (bytes)\n    '
    encryption_key = Fernet.generate_key()
    fernet = Fernet(encryption_key)
    encrypted_password = fernet.encrypt(password.encode('utf-8'))
    return (encrypted_password, encryption_key)
Take a password string, encrypt it with Fernet symmetric encryption,
and return the result (bytes), with the decryption key (bytes)
def encrypt(password):
    '\n    Take a password string, encrypt it with Fernet symmetric encryption,\n    and return the result (bytes), with the decryption key (bytes)\n    '
    encryption_key = Fernet.generate_key()
    fernet = Fernet(encryption_key)
    encrypted_password = fernet.encrypt(password.encode('utf-8'))
    return (encrypted_password, encryption_key)