SHA 512 hash
- How-to
- László Ferenc Horváth
- PowerBuilder
- Tuesday, 25 June 2019 08:58 AM UTC
Hi Bruce!
Pls help
I need the SHA512 hash value of the password. Example password = '12AA34ox1742'.
Any online hash generator return: 8F7780D9A703C5D989417BEC4C0FBC5371A7BD2F0765205BC6395DCF7D596FD51DE0F404AA65CE60F05FAFE014B6BB2C72A4FE1E1F4EB52E5C52E1E819F4701F
my code (PB Standard, V2019 Build 2082):
CrypterObject nvo_CrypterObject
nvo_CrypterObject = Create CrypterObject
string ls_password = '12AA34ox1742'
Blob lblb_sha512hash
//hash with SHA512
lblb_sha512hash= nvo_CrypterObject.SHA(SHA512!, Blob( ls_password, EncodingUTF8! ))
ls_hash = upper( string( lblb_sha512hash, EncodingUTF8! ))
Destroy nvo_CrypterObject
this return ls_hash = "瞏WΧ٧ŘཌA{쌏攇SQ콝好/E [Ƹ]ϽYO՝ഄ⺵EΠﯠ"
If ls_hash encode base64 then return: j3eA2acDxdmJQXvsTA+8U3GnvS8HZSBbxjldz31Zb9Ud4PQEqmXOYPBfr+AUtrsscqT+Hh9OtS5cUuHoGfRwHw==
???
What is mistake?
thx Laszlo
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.