[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encdrypting on the AS400



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>

I review Scott Klements article on encrpytion, I tried to see if I could encrypt our SSN's. We have them stored as 9 packed with 0 decimals. Is there a way to encrypt packed or zoned data?

A packed or zoned decimal field can be used as input to encryption routines. You can simply pass a pointer to the field, just as you would with a character field.


However, you can't store the encrypted result in a packed/zoned field because the encrypted data may not be a valid number in packed/zoned format.

Also, keep in mind that the encrypted field could be longer than the input, depending on the encryption alogrithm. So you'll want a character field that's a bit longer to store the results in.

Hope that helps...
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------