string CSaleUserCards::CryptData( string data, string type );
The method CryptData encrypts or decrypts the credit card number.
Parameter | Description |
---|---|
data | The data to be encrypted (or decrypted). |
type | To encrypt the data, pass "E" in this parameter. To decrypt the data, pass "D". |
The card number must be encrypted before it is saved in the database, and decrypted after it is returned from the database.
The method returns the result of the encryption (decryption).
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |