Tags:
view all tags
---+ .UTIL COMPUTE HASH _This subroutine computes the SHA-2 hash value for the given string. APPX 5.4.5 & higher only._ <br />%TOC% ---++ Usage: <pre>* PASS <hash value returned> FIELD SHARE? Y * PASS <hash type> FIELD SHARE? N * PASS <Data to hash> FIELD SHARE? N * GOSUB --- .UTIL COMPUTE HASH * Check for errors * IF --- .UTIL COMPUTE HASH NE </pre> ---++ Description: This subroutine computes the SHA-2 hash value for the given string. The first 2 parameters are required and if any required parameters are missing, the subroutine will CANCEL. <hash value returned> is the computed value returned. This must be passed with Share="Y" to return a value. It should be an alpha field at least 64 or 128 bytes in length, depending on the <hash type> requested (Required). <hash type> is the type of hash value you want returned (Required): * BIN for a 64 byte binary value * UC for a 128 byte readable value, upper case * LC for a 128 byte readable value, lower case <Data to hash> is the string to be hashed (32k max size). ---++ Comments: _Read what other users have said about this page or add your own comments._ Editorial comment: This API provides a great way to overcome the APPX 256-character key length limitation. If your desired key is a field longer than 256 (such as a server file path or a group of many fields), or if it will be longer than 256 when the primary key is appended, pass the desired key value into this subroutine and use the resulting 128-byte value as your guaranteed unique key. -- %BUBBLESIG{AlKalter - 2016-11-07}% %COMMENT% -- Main.JeanNeron - 2012-03-08
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r3 - 2017-11-21
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback