| java.lang.Object org.archive.util.Base32
Base32 | public class Base32 (Code) | | Base32 - encodes and decodes RFC3548 Base32
(see http://www.faqs.org/rfcs/rfc3548.html )
Imported public-domain code of Bitzi.
author: Robert Kaye author: Gordon Mohr |
Method Summary | |
public static byte[] | decode(String base32) Decodes the given Base32 String to a raw byte array. | public static String | encode(byte[] bytes) Encodes byte array to Base32 String.
Parameters: bytes - Bytes to encode. | public static void | main(String[] args) |
decode | public static byte[] decode(String base32)(Code) | | Decodes the given Base32 String to a raw byte array.
Parameters: base32 - Decoded base32 String as a raw byte array. |
encode | public static String encode(byte[] bytes)(Code) | | Encodes byte array to Base32 String.
Parameters: bytes - Bytes to encode. Encoded byte array bytes as a String. |
main | public static void main(String[] args)(Code) | | For testing, take a command-line argument in Base32, decode, print in hex,
encode, print
Parameters: args - |
|
|