The _CIPHER builtin might help. How strong do you need the encryption to be? I've used _CIPHER to generate a hash value of certain data on a record and store the hash on the record. When the record is retreived the hash is re-computed and it must match the hash stored on the record otherwise the record has been tampered with. But the data is stored in the clear. _CIPHER it can also be used to encrypt data however. By specifying x'07' for the function code instead of the x'05' shown here you can perform a function similar to crypt() in unix. The doc is available here http://publib.boulder.ibm.com/iserie.../mi/CIPHER.htm These links might also be of interest: http://directory.fsf.org/Security/libgcrypt.html http://www.novell.com/products/linux...libgcrypt.html Tom D.
Code
Code
Comment