List of utility methods to do Base64
int | base64toInt(char c, byte[] alphaToInt) Translates the specified character, which is assumed to be in the "Base 64 Alphabet" into its equivalent 6-bit positive integer. int result = alphaToInt[c]; if (result < 0) { throw new IllegalArgumentException("Illegal character " + c); return result; |
String | base64UrlFriendly(String base) base Url Friendly return base.replace("+", "-").replace("/", "_").replace("=", ""); |
int | base64Value(char digit) base Value if (digit >= 'A' && digit <= 'Z') { return digit - 'A'; if (digit >= 'a') { return digit - 'a' + 26; if (digit >= '0' && digit <= '9') { return digit - '0' + 52; ... |