Code example for MessageDigest

Methods: digest

0
  public synchronized byte[] digest(final String iInput) {
    if (iInput == null)
      return null; 
 
    try { 
      return md.digest(iInput.getBytes("UTF-8"));
    } catch (UnsupportedEncodingException e) {
      OLogManager.instance().error(this, "The requested encoding is not supported: cannot execute security checks", e,
          OConfigurationException.class); 
    } 
    return null; 
  } 
 
  public synchronized byte[] digest(byte[] iInput) {
    return md.digest(iInput);
  } 
 
  public SecretKey generateKey(final String iAlgorithm, final int iKeySize) {
    KeyGenerator kg;
    try { 
Experience pair programming with AI  Get Codota for Java