Posted to tcl by Bradipo at Wed Aug 27 20:55:36 GMT 2025view raw
- % package require aes
- 1.2.2
- % package require base64
- 2.6.1
- % set iv [binary decode hex 30313233343536373839616263646566]
- 0123456789abcdef
- % set key [binary decode hex 7468697372616e646f6d706f70706c6534393121403f79307963787662757265]
- thisrandompopple491!@?y0ycxvbure
- % set data "Encrypted in Tcl!"
- Encrypted in Tcl!
- % base64::encode [aes::aes -dir encrypt -key $key -iv $iv $data]
- akLHodgYT0CJEnfuTEJA5d280uAKuuKUTeIn7OaylTk=
- Now, decrypt in OpenSSL:
- $ echo akLHodgYT0CJEnfuTEJA5d280uAKuuKUTeIn7OaylTk= | openssl enc -aes-256-cbc -a -d -iv 30313233343536373839616263646566 -K 7468697372616e646f6d706f70706c6534393121403f79307963787662757265 -nopad
- Encrypted in Tcl!
Add a comment