public static final class Radix64Encoder.Default extends Object implements Radix64Encoder
Radix64Encoder.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] utf8EncodedBytes)
Decode a string encoded using bcrypt's base64 scheme to a
byte array.
|
byte[] |
encode(byte[] rawBytes,
int maxLengthToEncode)
Encode a byte array using bcrypt's slightly-modified base64
encoding scheme.
|
public byte[] encode(byte[] rawBytes,
int maxLengthToEncode)
encode in interface Radix64EncoderrawBytes - the byte array to encodemaxLengthToEncode - the number of bytes to encodeIllegalArgumentException - if the length is invalidpublic byte[] decode(byte[] utf8EncodedBytes)
decode in interface Radix64Encoderutf8EncodedBytes - the string to decodeIllegalArgumentException - if maxolen is invalidCopyright © 2018. All rights reserved.