docs: public static SecretKey newSecretKey(final char[] password, final String algorithm)
  		throws NoSuchAlgorithmException, InvalidKeySpecException
  	{
  		final PBEKeySpec pbeKeySpec = new PBEKeySpec(password);
  		final SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(algorithm);
  		final SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec);
  		return secretKey;
  	}