public interface Radix64Encoder
According to Wikipedia:
Unix stores password hashes computed with crypt in the /etc/passwd file using radix-64 encoding called B64. It uses a mostly-alphanumeric set of characters, plus . and /. Its 64-character set is "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz". Padding is not used.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Radix64Encoder.Default
A mod of Square's Okio Base64 encoder
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] utf8EncodedRadix64String)
From a UTF-8 encoded string representing radix64 encoded data as byte array, decodes the raw bytes from it.
|
byte[] |
encode(byte[] rawBytes)
Encode given raw byte array to a Radix64 style, UTF-8 encoded byte array.
|
byte[] encode(byte[] rawBytes)
rawBytes - to encodebyte[] decode(byte[] utf8EncodedRadix64String)
utf8EncodedRadix64String - from a string get it with "m0CrhHm10qJ3lXRY.5zDGO".getBytes(StandardCharsets.UTF8)Copyright © 2018. All rights reserved.