MD5
PowerScript function
Description
Calculates the MD5 value of a blob.
Applies to
CrypterObject object
Syntax
|
1 |
crypter.MD5 (variable) |
|
Argument |
Description |
|---|---|
|
crypter |
The name of the CrypterObject object |
|
variable |
A blob whose value is the data you want to process with When using the system blob function to convert a string to |
Return value
Blob. Returns the result of the MD5 if it succeeds. If any
argument’s value is null, the method returns null. If an error occurs,
throw the exception.
Examples
This statement encrypts the data with MD5.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Blob lblb_data Blob lblb_md5 String ls_data lblb_data = Blob("Test MD5", EncodingANSI!) CrypterObject lnv_CrypterObject lnv_CrypterObject = Create CrypterObject // Encrypt with MD5 lblb_md5 = lnv_CrypterObject.MD5(lblb_data) Coderobject lnv_code Lnv_code = create coderobject //Encode the MD5 blob data to be hex data and output as a string Ls_data = lnv_code.hexencode(lblb_md5) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest