Kotlin program based on cryptography algorithms for encryption and decryption information using AES and DES.
➜ crypto-symmetric: gradle build
➜ ...
➜ crypto-symmetric: gradle jar
usage: java -jar crypto-symmetric.jar [-b] -e|-d -c CIPHER -s FILE [-r FILE] -k KEY
optional arguments:
-b : specify binary output
-d : decrypt message
-e : encrypt message
-k KEY : secret key
-s FILE : source file
-r FILE : result file
-c CIPHER : AES or DES
- Encryption
➜ java -jar crypto-symmetric.jar -e -c DES -s src.txt -r res.txt -k "SuperKey"
- Decryption
➜ java -jar crypto-symmetric.jar -d -c DES -s res.txt -r tmp.txt -k "SuperKey"
- Encryption
➜ java -jar crypto-symmetric.jar -e -c AES -s src.txt -r res.txt -k "SuperSecretKey10"
- Decryption
➜ java -jar crypto-symmetric.jar -d -c AES -s res.txt -r tmp.txt -k "SuperSecretKey10"
- Translate all comments in the code into English
Licensed under the MIT-License.