public static long longFromBase64(java.lang.String value)
Decode a base64 string into a long value.
public static java.lang.String toBase64(byte data)
Converts a byte array into a base 64 encoded string. Null is encoded as
null, and an empty array is encoded as an empty string. Otherwise, the byte
data is read 3 bytes at a time, with bytes off the end of the array padded
with zeros. Each 24-bit chunk is encoded as 4 characters from the sequence
[A-Za-z0-9$_]. If one of the source positions consists entirely of padding
zeros, an '=' character is used instead.
data - a byte array, which may be null or empty
public static java.lang.String toBase64(long value)
Return a string containing a base-64 encoded version of the given long
value. Leading groups of all zero bits are omitted.