You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,9 @@ gcc *.c -w -g -lm -o aes256
7
7
8
8
# usage
9
9
10
-
`./aes256` Run with the data and key from the NIST FIPS 197 document Appendix C.3 example.
10
+
`./aes256 -ecb [Message to encrypt] [256 bit key in 02x hex]` Encrypt data using AES256-ECB
11
11
12
-
`./aes256 [Message to encrypt]` Run with data from command line.
13
-
14
-
`./aes256 [Message to encrypt] [Key in 02x hex]` Run with data and key from command line.
12
+
`./aes256 -cbc [Message to encrypt] [256 bit key in 02x hex] [128 bit iv in 02x hex]` Encrypt data using AES256-CBC
15
13
16
14
# note
17
-
If the data and key from the command line didn't tip you off, don't use this for anything that you actually want to encrypt. This implementation was an educational exercise and is slow, probably naive, and vulnerable to all of the cryptographic no-nos. Use [OpenSSL](https://github.com/openssl/openssl) for a free, open-source, and infinitely more secure encryption option.
15
+
If the data and key from the command line didn't tip you off, don't use this for anything that you actually want to encrypt. This implementation was an educational exercise and is slow, probably naive, and vulnerable to all of the cryptographic no-nos. Use [OpenSSL](https://github.com/openssl/openssl) for a fast, free, open-source, and infinitely more secure encryption option.
0 commit comments