public static boolean checkpw ( String plaintext , String hashed ) { return ( hashed . compareTo ( hashpw ( plaintext , hashed ) ) == 0 ) ; }
Check that a plaintext password matches a previously hashed one