Encode string to base32 string in Java
As @Sotirios Delimanolis wrote it can be done using apache commons but you can also use google guava libraries. For example:
BaseEncoding.base32().encode("test".getBytes());
will return ORSXG5A=
.
More information can be found here.
Apache commons-codec provides a Base32
class that does just that
Base32 base32 = new Base32();
System.out.println(base32.encodeAsString("test".getBytes()));
prints
ORSXG5A=
You can download it here.