Accepted Code - protea.p Documentation TEA (the Tiny Encryption Algorithm) is a Feistel cipher with XOR and addition as the non-linear mixing functions.
protea.p and protea.i implement TEA in the Progress 4GL. They are meant to be used for encrypting small, important pieces of data, such as credit card numbers.
(In other words, you could use PROTEA to encrypt whole files...but it would be slow.)
Syntax:
The set_mix function sets the mix variable, if possible. It returns true if a valid mix value was passed in, otherwise it returns false. The mix variable is the number of iterations over which to encrypt the data. This number may be from 1 to 32, and is set to 32 by default. The bigger the number, the slower the encryption process but the better the encryption. |
|