Bcrypt Plugin
Dependency :
compile ":bcrypt:1.0"
Summary
Simple bcrypt plugin to perform bcrypt hashing.
Installation
grails install-plugin bcrypt
Description
This plugin provides a service class and a codec utility for easy bcrypt hashing.Salt + MD5 or SHA hashing is typically not secure enough. See here for more details http://codahale.com/how-to-safely-store-a-password
Usage
// inject bcryptService the usual way def bcryptServiceString password = "my password"// should give you a nice bcrypt hash println password.encodeAsBcrypt()// same thing but using the service class def x = bcryptService.hashPassword(password)// if true continue, else bye. assert service.checkPassword(password, *hashed_password*)