Skip to content

Example of AES-256-CBC Encryption

Notifications You must be signed in to change notification settings

ellisjoe611/example-aes-256-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-aes-256-py

This is a demo project that demonstrates how AES-based encryption & decryption workes on the code.
Hopefully this will be helpful to understand the basic process of the end-to-end data security between web pages and server application.
(It may require additional package installation.)

How does AES-256-CBC encryption work?

  1. Create secret key with the algorithm like SHA-256 hashing.
  2. Additional (blank) buffers will be padded at the end of the original data to make sure the whole data length will be multiple of the block size. (mostly 16)
  3. Encrypt the data above with secret key & IV(Initialization Vector) data. (IV is used for the encryption during the block initialization)
  4. Combine IV & encrypted data in base64 format as the result.


About

Example of AES-256-CBC Encryption

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages