/** * A function that generates password-based AES & HMAC keys. See generateKeyFromPassword. * @param password The password to derive the AES/HMAC keys from * @param salt A string version of the salt; base64 encoded. * @return The AES & HMAC keys. * @throws GeneralSecurityException */ public static SecretKeys generateKeyFromPassword(String password, String salt) throws GeneralSecurityException { return generateKeyFromPassword(password, Base64.decodeBase64(salt)); }