Skip to content
/ AES Public

Advanced Encryption Standard algorithm implementation

Notifications You must be signed in to change notification settings

strmrider/AES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AES

AES 128 bits implementation in python.

Example

Text encryption and decryption

import aes

# generates new cipher key
key = aes.generate_cipher_key()

text = "YOUR_TEXT"

aes_object = aes.AES(key)
# encrypt text
encrypted_text = aes_object.encrypt(text)
# decrypt text
decrypted_text = aes_object.decrypt(encrypted_text)

File encryption and decryption

filename = "YOUR_FILE_PATH"
# encrypt file
aes_object.encrypt_file(filename)
# decrypt file
aes_object.decrypt_file(filename)

About

Advanced Encryption Standard algorithm implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages