![]() ![]() |
Reference Type: Supported, Category: Data Security, ICR#: 6189
The $$SHAHASH^XUSHSH extrinsic function returns the Secure Hash Algorithm (SHA) hash for a string entry. It uses an input variable to specify the length in bits of the desired hash.
NOTE: This API was released with Kernel Patch XU*8.0*655.
$$SHAHASH^XUSHSH(n,x[,flag])
n: |
(required) Length in bits of the desired hash:
|
x: | (required) String to be hashed. |
flag: |
(optional) Flag to control format of hash:
|
returns: |
Returns SHA hash for a string entry. |
>W $$SHAHASH^XUSHSH(256,"This is a test") C7BE1ED902FB8DD4D48997C6452F5D7E509FBCDBE2808B16BCF4EDCE4C07D14E |
>W $$SHAHASH^XUSHSH(256,"This is a test","B") x74e2QL7jdTUiZfGRS9dflCfvNvigIsWvPTtzkwH0U4= |