Skip to main content

A wrapper for cryptography.fernet

Project description

python-cryptography-fernet-wrapper

Github Repository

usage

  • 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

Built Distribution

File details

Details for the file python-cryptography-fernet-wrapper-1.0.4.tar.gz.

File metadata

  • Download URL: python-cryptography-fernet-wrapper-1.0.4.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for python-cryptography-fernet-wrapper-1.0.4.tar.gz
Algorithm Hash digest
SHA256 74f118afad763ceb1c1eaaba6b06e19cc35e5cffb4008e7154675171fa116a92
MD5 2b626a1e6ce5e9537c551ef2cf3cc154
BLAKE2b-256 b976bd8e49f1ef38ff7b93ef194be5bbd16dcec43aca3f09176fb9fbb565ac7b

See more details on using hashes here.

File details

Details for the file python_cryptography_fernet_wrapper-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: python_cryptography_fernet_wrapper-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for python_cryptography_fernet_wrapper-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc7d536fedec01e12bc6d4f0cf9772d102d4db9786f10108ed90e519151e9b6
MD5 61400d34755898ffa8a54adb9b006b78
BLAKE2b-256 54c324d1d6ff64a3cbd85b327d0f0621e48c5feb8aaca238f20a5bcbcd0463ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page