public String hashPassword ( final String password , final String salt , final HashAlgorithm hashAlgorithm , final Charset charset ) throws NoSuchAlgorithmException { final String hashedPassword = HashExtensions . hash ( password , salt , hashAlgorithm , charset ) ; return hashedPassword ; }
Hashes the given password with the given salt hash algorithm and charset .