Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.65 KB

python_cryptography_symmetric_string_encryption_key_based.md

File metadata and controls

54 lines (42 loc) · 1.65 KB
title keywords summary permalink folder references authors current_reviews last_updated tags
Python Symmetric String Encryption with key generation using Cryptography
sample
Symmetric string encryption in Python with key generation
python_cryptography_symmetric_string_encryption_key_based.html
Python Cryptography
name url
Manuel Kloppenburg
2018-09-13
Python
AES
GCM
Salt
AEAD

Use cases

  • Random key generation
  • Key based encryption of a string

Installation

Install cryptography with pip: pip install cryptorgraphy

Supported Python versions

  • Python 2.7
  • Python 3.6
  • Python 3.7

Example Code for Python based symmetric encryption using AES-GCM and generation of keys

{% include_relative src/cryptoexamples/example_symmetric_string_encryption_password_based.py %}

{% include links.html %}