Skip to content

gxenos/AES_Python_Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

AES Python Implementation

A Python implementation of AES with 128 bits key.

Installing

You only need Python 3.x

For test.py you need pycryptodome module. To install with pip:

pip install pycryptodome

Usage Example

Define text and key:

text = 'Two One Nine Two'
key = 'Thats my Kung Fu'

To create the cipher object:

cipher = crypt.Aes.parse_text(text, key) # Constructor.

To encrypt:

cipher.encrypt() 
print(cipher.message) # Byte list of encrypted message.

To decrypt:

cipher.decrypt()
print(cipher.message) # String of decrypted original message.

About

A Python implementation AES(128 bits).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages