Grails encryption plugin
This time we've released a Grails plugin for encryption functions, using the Bouncy Castle libraries. It currently provides simple wrappers for both Blowfish and PGP, as well as a tool class for generating random passwords, salting passwords when hashing them, and verifying salted passwords.
To install, execute
grails install-plugin http://www.arquetipos.co.cr/blog/files/grails-crypto-1.0.1.zip
The code is documented, and you'll find many test cases for the most common tasks. I'll eventually expand the documentation here as well as on the Grails wiki.
I'll be on the Grails User's List if you have any questions.
Update:
I've uploaded version 1.0.1, which has the following changes:
- Added HexCodec class.
- Default saltedPassword function will return the value as a byte array, use saltedPasswordHex and saltedPasswordBase64 for string values with the respective encodings. This was done for consistency with the Apache commons nomenclatures.


