EncryptDecrypt()

Anonymous
Anonymous

Passkey Encryption/Decryption

Version
1.02

Requirements
Citect

Description
This Cicode function uses a simple encryption method to secure text strings. It can be used for storing passwords in a database or protecting other somewhat sensitive information.The function XORs each character in a string with a character from an encryption key string and returns the result. It is not extremely secure but will deter most prying eyes. The same function can be used to encrypt or decrypt and you can use any passkey or the default.

See also the more secure RC4 encryption in Q1231 or hashing in Q1230

Author
Eric Black

Submitter
Eric Black

Attachments