https://github.com/melardev/cpp_aes_ecb_implementation
https://github.com/melardev/cpp_aes_ecb_implementation
aes aes-ecb aes-encryption cpp ecp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/melardev/cpp_aes_ecb_implementation
- Owner: melardev
- License: mit
- Created: 2019-05-29T11:42:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T11:44:00.000Z (about 6 years ago)
- Last Synced: 2025-01-25T23:36:11.346Z (5 months ago)
- Topics: aes, aes-ecb, aes-encryption, cpp, ecp
- Language: C++
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
AES ECB implementation I wrote in C++ many years ago, this was a really old code I have written, I didn't implement
the decryption code thought, sorry. I may come back to this code to implement the decryption routine.
This code is not meant to be used in real world applications obviously, but only for learning, it is easy to read and
not very professional code. I upload it as my souvenir and also for sharing code with beginners that may
want to learn cryptography and find very difficult to read professional code.
To prove this works, you can encrypt your plain text with python:```py
from Crypto.Cipher import AES
key = 'string 2 encrypt'
cipher = AES.new(key.encode(), AES.MODE_ECB)
hexed = ""
encrypted = cipher.encrypt('ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_3'.encode())
for c in encrypted:
hexed += "%02x" %c
print(hexed)
```# Social Media
- [Youtube](https://youtube.com/Melardev)
- [Twitter](https://twitter.com/@melardev)
- [Instagram](https://instagram.com/melar_dev)