public class PbkdfBase64 extends Object
| Constructor and Description |
|---|
PbkdfBase64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(String s,
int maxolen)
Decode a string encoded using bcrypt's base64 scheme to a
byte array.
|
static String |
encode(byte[] d,
int len)
Encode a byte array using bcrypt's slightly-modified base64
encoding scheme.
|
public static String encode(byte[] d, int len) throws IllegalArgumentException
d - the byte array to encodelen - the number of bytes to encodeIllegalArgumentException - if the length is invalidpublic static byte[] decode(String s, int maxolen) throws IllegalArgumentException
s - the string to decodemaxolen - the maximum number of bytes to decodeIllegalArgumentException - if maxolen is invalid