repl.it
@jeffreyblattman/

Base64Cropped

Java

No description

fork
loading
Files
  • Main.java
  • Ids.java
Main.java
1
2
3
4
5
6
7
8
9
10
class Main {
  public static void main(String[] args) {
    String id = "057YQSFVTF80";
    System.out.println(id);
    String cropped = Ids.base32ToBase64Cropped(id, 7);
    System.out.println(cropped);
    String decoded = Ids.safeBase64toBase32(cropped);
    System.out.println(decoded);
  }
}