public class Hash extends Object
Hash provides generic methods to hash data.| Constructor and Description |
|---|
Hash() |
| Modifier and Type | Method and Description |
|---|---|
static String |
hash(String string)
Generates a SHA1 digest of the string and returns BASE64 encoded digest.
|
static void |
main(String[] args)
Hash of the provided string or string read from a file specified with a
"-f" option
|
public static String hash(String string)
string - a string to be hashed return a BASE64 encoded hashed String or
null if an error occurredpublic static void main(String[] args)
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.