public static String generateHash ( String emailAddress ) { if ( StringUtils . isBlank ( emailAddress ) ) { return null ; } return DigestUtils . md5Hex ( emailAddress . trim ( ) . toLowerCase ( ) ) . toLowerCase ( ) ; }
Generates a hash value from the specified email address . Returns null if emailAddress is empty or null .