Skip to main content

A wrapper for cryptography.fernet

Project description


Github Repository


  • Importing

    pip install python-cryptography-fernet-wrapper
    from fernet_wrapper import Wrapper as fernet_wrapper
  • Encrypt

    encrypted_data = fernet_wrapper.encrypt(data, key)
  • Decrypt

    decrypted_data = fernet_wrapper.decrypt(encrypted_data, key)
  • Generate random key

    key = fernet_wrapper.gen_key()
  • Generate key from password

    key = fernet_wrapper.key_from_pass(password)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-cryptography-fernet-wrapper-1.0.4.tar.gz (14.3 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page