public class Base16 extends Object
Modifier and Type | Method and Description |
---|---|
static String |
digest(byte[] script)
Create SHA1 digest from Lua script.
|
static String |
digest(ByteBuffer script)
Create SHA1 digest from Lua script.
|
static char[] |
encode(byte[] src,
boolean upper)
Encode bytes to base16 chars.
|
public static char[] encode(byte[] src, boolean upper)
src
- Bytes to encode.upper
- Use upper or lowercase chars.public static String digest(byte[] script)
script
- the scriptpublic static String digest(ByteBuffer script)
script
- the scriptCopyright © 2023 lettuce.io. All rights reserved.