How to Use AES-256 Cipher: Python Cryptography Examplesby@wagslane
15,336 reads

How to Use AES-256 Cipher: Python Cryptography Examples

February 23rd 2020
5 min
by @wagslane 15,336 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

A simple encrypt(plain_text, password) function uses the password to encrypt the plain text. The same person who is encrypting the data is typically decrypting it as well (think password manager) The library supplies us with a secure nonce. Scrypt is used to generate a secure private key from the password. A new random salt is used for each run of our encryption. This makes it impossible for an attacker to use precomputed hashes in an attempt to crack the cipher. A random nonce must be a random and unique value for each time our encryption function is used.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Use AES-256 Cipher: Python Cryptography Examples
Lane Wagner HackerNoon profile picture

@wagslane

Lane Wagner

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa