Java or Spring: two-way encryption with salt? -


I am doing a web project with spring.

I hope to encryption in two ways (and decryption). I do not need very strong encryption for some URL parameters

I googled but found that there are many ways to encrypt password encryption Related, which is not desired.

Can a specialist speak out to me in the right place?

Thank you!

I can recommend a really good library called bouncy palace, some good examples on your homepage

Another possibility is that of the Java crypto API and something like

  secret keySpec = new SECRET of SPEC (keybites, "AES"); AlgorithmParametersPP ivSpec = new IVPM (ivBytes); Cipher AESCBC = cipher Get Instances ("AES / CBC / No Padding"); AesCbc.init (cipher NCRYP_MODE, KeySPEC, ivSpec); Byte [] Encrypted Bows = AESCBCDoneFinal (Plain Text); Return Base64.encodeBase64String (encrypted bits);  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -