Code: Select all
UseSHA2Fingerprint()
*Key = AllocateMemory(32)
; Create a 256bit key using SHA-512 hash function and 500000 iterations
DeriveCipherKey("SecretPassword", "NonSecretSalt", 500000, *Key, 256, #PB_Cipher_SHA2, 512)
; Show the key
ShowMemoryViewer(*Key, 32)Too much turkey, dessert and wine has fried my brain.
got it.
Code: Select all
Procedure.s MemToHex(*Mem, Size)
Protected s.s = ""
For i = 0 To Size-1
s + RSet(Hex(PeekB(*Mem + i)), 2, "0") + " "
If i % 16 = 15 : s + #CRLF$ : EndIf
Next
ProcedureReturn s
EndProcedurecheerts

