Class SimpleSha1

java.lang.Object
org.kawanfw.sql.api.server.util.SimpleSha1

public class SimpleSha1
extends Object
Simple SHA-1 implementation.
Author:
Nicolas de Pomereu
  • Constructor Details

    • SimpleSha1

      public SimpleSha1()
  • Method Details

    • sha1

      public static String sha1​(String text, boolean toLowerCase)
      Returns the SHA-1 digest of input text in hexadecimal string
      Parameters:
      text - the text to hash
      toLowerCase - if true, hexadecimal string is returned in lower case
      Returns:
      the SHA-1 digest of input text in hexadecimal string