public static boolean checkPassword ( String salt , String password , String plainPassword ) { byte [ ] saltHex = EncodeKit . decodeHex ( salt ) ; byte [ ] hashPassword = DigestsKit . sha1 ( plainPassword . getBytes ( ) , saltHex , EncodeKit . HASH_INTERATIONS ) ; return StringUtils . equals ( EncodeKit . encodeHex ( hashPassword ) , password ) ; }
Check Password salt password planpassword .