PowerBuilder
PowerBuilder
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat PowerBuilder Downloads
integer li_rc
integer li_Success
oleobject loo_Str
string ls_EncodedHash
li_Success = 0
loo_Str = create oleobject
li_rc = loo_Str.ConnectToNewObject("Chilkat.SecureString")
if li_rc < 0 then
destroy loo_Str
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Str.MaintainHash = "sha256"
loo_Str.Append("Hello World")
ls_EncodedHash = loo_Str.HashVal("base64")
Write-Debug ls_EncodedHash
destroy loo_Str