public class Cryptor extends Object
| Constructor and Description |
|---|
Cryptor() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
sha256Hash(byte[] input)
Hashes input bytes using SHA-256.
|
static byte[] |
sha256Hash(byte[] input,
int offset,
int len)
Hashes input bytes using SHA-256.
|
static String |
sha256HashBase64(byte[] input)
Hashes input bytes using SHA-256 and converts hash into a string using
Base64 encoding.
|
public static byte[] sha256Hash(byte[] input,
int offset,
int len)
input - input bytesoffset - offset into the output buffer to begin storing the digestlen - number of bytes within buf allotted for the digestpublic static byte[] sha256Hash(byte[] input)
input - input bytespublic static String sha256HashBase64(byte[] input)
input - input bytesCopyright © 2018. All rights reserved.