View Single Post
Old 26th October 2019, 16:32   #12
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,294
PHP Code:
Crypto::HashData MD5 "Password"
Pop $1
DetailPrint 
"Hashed password=$1"
Crypto::Encode BASE64 "hex:$1" ; Or "m:$1" if you want to encode the hex string instead of the actual hash bytes
Pop 
$1
DetailPrint 
"BASE64 hashed password=$1"

Crypto::Encrypt AES-128 "b64:$1" "m:MyIV" "m:This is a test"
Pop $3
DetailPrint 
"BASE64 CT=$3"


Crypto::Decrypt AES-128 "b64:$1" "m:MyIV" "b64:$3"
Pop $4
DetailPrint 
"BASE64 PT=$4"
Crypto::Decode BASE64 $4
Pop 
$0
DetailPrint PT
=$
Attached Files
File Type: zip Crypto 1.5.2 experimental.zip (4.6 KB, 141 views)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote