I'm so confused by Java Cryptography... I know how to program in Java,
but JCE seems like an animal all into itself. What I want to do is
encrypt financial information, credit card #'s, balances, invoice
numbers, etc. and then decrypt them. I'd like to have a security
class like Security, and call methods like Security.encrypt("data")
and new String(Security.decrypt(byteVariable)). From what I
understand, AES is the way to go, and PBE would allow me to hold a
server-side password to use to create a cipher to encrypt/decrypt my
data. Could someone give me an example or point me to examples on how
I can get this done? Thanks! |