Skip to content

Instantly share code, notes, and snippets.

View f3z0's full-sized avatar

Gregory Ray f3z0

View GitHub Profile
@Dewep
Dewep / aes-128-cbc
Last active March 30, 2017 19:56
aes-128-cbc
root@toto:~# echo -n 0000000000000000 | xxd -g 0
0000000: 30303030303030303030303030303030 0000000000000000
root@toto:~# echo -n 1234567890 | openssl aes-128-cbc -e -K 30303030303030303030303030303030 -iv 00000000000000000000000000000000 | md5sum
aa8301604be724a92e1f223e14caea68 -
root@toto:~# python2 -c 'import sys, Crypto.Cipher.AES as A; sys.stdout.write(A.new("0"*16, A.MODE_CBC, "\0"*16).encrypt("1234567890\6\6\6\6\6\6"))' | md5sum
aa8301604be724a92e1f223e14caea68 -