# Java Guide
# Dependency
Assuming you use Apache Maven, add the following library dependency:
<dependency>
<groupId>de.bitmarck.bms</groupId>
<artifactId>base32check-java</artifactId>
<version>0.0.1</version>
</dependency>
This library requires Java 1.8 as a minimum requirement.
# Codec
import de.bitmarck.bms.base32.Base32;
var bytes = "Hello world!".getBytes();
var base32 = Base32.encode(bytes);
var copy = Base32.decode(base32);
assert Arrays.equals(copy, bytes);
# Checksum
import de.bitmarck.bms.base32.Base32Check1;
var string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
var checksum = Base32Check1.compute(string);
assert Base32Check1.validate(string + checksum);
← Samples Scala Guide →