code: public static Cipher newCipher(final String algorithm)
  		throws NoSuchAlgorithmException, NoSuchPaddingException
  	{
  		final Cipher cipher = Cipher.getInstance(algorithm);
  		return cipher;
  	}
docs: Factory method for creating a new {@link Cipher} from the given algorithm.
  
  @param algorithm
  the alg
  @return the new {@link Cipher}
  
  @throws NoSuchAlgorithmException
  is thrown if instantiation of the SecretKeyFactory object fails.
  @throws NoSuchPaddingException
  is thrown if instantiation of the cypher object fails.