Package org.keycloak.models.utils
Class Base32
java.lang.Object
org.keycloak.models.utils.Base32
Base32 - encodes and decodes RFC3548 Base32 (see http://www.faqs.org/rfcs/rfc3548.html )
- Author:
- Robert Kaye, Gordon Mohr
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Base32
public Base32()
-
-
Method Details
-
encode
Encodes byte array to Base32 String.- Parameters:
bytes
- Bytes to encode.- Returns:
- Encoded byte array
bytes
as a String.
-
decode
Decodes the given Base32 String to a raw byte array.- Parameters:
base32
-- Returns:
- Decoded
base32
String as a raw byte array.
-