public class HashidKit extends Object
| 构造器和说明 |
|---|
HashidKit() |
HashidKit(String salt) |
HashidKit(String salt,
int minHashLength) |
HashidKit(String salt,
int minHashLength,
String alphabet) |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
checkedCast(long value) |
long[] |
decode(String hash)
Decrypt string to numbers
|
String |
decodeHex(String hash)
Decrypt string to numbers
|
String |
encode(long... numbers)
Encrypt numbers to string
|
String |
encodeHex(String hexa)
Encrypt hexa to string
|
String |
getVersion()
Get version
|
public HashidKit()
public HashidKit(String salt)
public HashidKit(String salt, int minHashLength)
public String encode(long... numbers)
numbers - the numbers to encryptpublic long[] decode(String hash)
hash - the encrypt stringpublic String encodeHex(String hexa)
hexa - the hexa to encryptpublic String decodeHex(String hash)
hash - the encrypt stringpublic static int checkedCast(long value)
public String getVersion()
Copyright © 2016. All rights reserved.