4.3 ww.dll API Reference : API descriptions : Functions with database access : gethash
 
gethash
 
Description
Constructs a one-way hash of the data that is passed in.
 
Note: In version 4.0.56, the encryptwebpass function was removed from ww.dll. Passwords must now be hashed. The gethash function exists for this purpose. Credit card number, CVV2 number and credit card expiration date are all masked in the ww.dll log when the processsale call return code is written. Any logging done by ww.dll as well as any calls to encryption functions are clean of the CVV2 number and credit card swipes. Credit card numbers only show the last four digits in the logs and the CVV2 number and the expiration date display as asterisks.
 
Example:
<settlement><card_fname>TOM</card_fname><card_lname>THUMB</card_lname><car
d_addr>1337 E GUSDORF
ROAD</card_addr><card_addr2></card_addr2><card_city>TAOS</card_city><card_state
>NM</card_state><card_zip>87571</card_zip><card_cntry>USA</card_cntry><card_no>
************4242</card_no><exp_date>****</exp_date><card_zip>87571</card_zi
p><card_cvv2>***</card_cvv2><termid>WEB</termid><devicetype>15</devicetype><a
mount>0007.44</amount><disctotal>0000.00</disctotal><tax>0000.49</tax></settle
ment>
 
Card numbers, CVV2 and expiration dates are masked in event log entries from the E-Commerce pages as well as in any strings displayed in the error.aspx page before being displayed.
 
Input fields
 
XML tag
Description
<data>
Data to be hashed.
 
Return fields
Hexadecimal representation of the hashed data.
 
Example
 
Example invocation:
<func>gethash</func><data>15051secretkey</data>
Example return string:
OK :289d1bfb42672b7288fe2aab8170094ecb6a334b48a4ce069709b9f26896bc41
 
See also
decryptdata
encryptdata
encryptdata2