-
Notifications
You must be signed in to change notification settings - Fork 9
Encryption options
When using the Kount SDK all credit card information, by default, uses the KHASH encryption method where the credit card information is irreversibly hashed prior to transmission from the merchant to Kount.
KHASH Kount proprietary hash used to hash the credit card number before passing it to Kount. The hashing algorithm source code can be found in each one of the SDKs or can be requested from Kount.
PTYP=CARD PENC=KHASH.
Output - BIN + 14 alpha-numeric characters.
Example - 123456A12C34E56G7DFG
MASK Ability to pass the first six and last four of a credit card filled in with XXXs. PENC=MASK is only valid with PTYP=CARD.
PTYP=CARD PENC=MASK
Output BIN + 10 capital “X” characters + Last 4 of credit card.
Example - 123456XXXXXXXXXX7890
Note: the “X” characters must all be capital “X”.
Important: The above example value is just for purposes of illustration. The PTOK should be the same length as the original card number. You can use the card number with the first 6 and last 4 numerals present and the rest of the numbers in the card masked by “Xs” but the number of characters must be the same as those of the actual card number.
Getting Started
Using Our SDK
Advanced documentation