Today i tried using _CryptoNG_PBKDF2 Function of CryptoNG.au3 UDF 490-cryptong-udf-cryptography-api-next-generation
Unfortunately, i keep getting the wrong salted Password!
#include <CryptoNG.au3>
$pass = "[test]"
$salt = "fd4b1e6ad1b05db6ff288928fed3005ef4fdc9ade8be276220a8f41adcccda29"
ConsoleWrite('pass: '&@TAB&@TAB&$pass&@CRLF)
ConsoleWrite('salt: '&@TAB&@TAB&$salt&@CRLF)
$iDKeyBitLength=256
$resKey = _CryptoNG_PBKDF2($pass, $salt, 100,$iDKeyBitLength,'SHA256')
If @error Then MsgBox(0,"","ERROR: " & _CryptoNG_LastErrorMessage(),0)
If StringLower(Hex($resKey)) <> '5fc52bc04cbe1ed40e549b52e5c636168242c1395df2dd696a327ad5e005198f' Then
ConsoleWrite('saltedPassword: '&StringLower(Hex($resKey))&' WRONG! ---> 5fc52bc04cbe1ed40e549b52e5c636168242c1395df2dd696a327ad5e005198f'&@CRLF)
Else
ConsoleWrite('saltedPassword: '&StringLower(Hex($resKey))&' !Correct'&@CRLF)
EndIf
And here are working examples in php and python. Python
Php