Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.9 KB

python_cryptography_symmetric_file_encryption_password_based.md

File metadata and controls

58 lines (46 loc) · 1.9 KB
title keywords summary permalink folder references authors current_reviews last_updated tags
Python Symmetric Password Based File Encryption using Cryptography
sample
Password based symmetric file encryption in Python
python_cryptography_symmetric_file_encryption_password_based.html
Python Cryptography
name url
Manuel Kloppenburg
2018-09-13
Python
AES
GCM
PBKDF2
Salt
AEAD

Use cases

  • Password based encryption of a file
  • Previously shared common secret (password)

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 file encryption using AES-GCM and PBKDF2

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

{% include links.html %}