I have created some code that should work:
String input = "PONT4uYmTYwiP0omcAxZG8a3vKI=";
String expectedOut = "3ce353e2e6264d8c223f4a26700c591bc6b7bca2";
Base64.Decoder decoder = Base64.getDecoder();
byte[] outAsByte = decoder.decode(input);
String output = new String(outAsByte, StandardCharsets.UTF_8);
System.out.println(input);
System.out.println(output);
(based on How do I decode a base64 encoded string? - I know that it's in C#)
Surprisingly this outputs the following:
PONT4uYmTYwiP0omcAxZG8a3vKI=
<?S??&M?"?J&pY???
Why does this print a bunch of gibberish instead of the the expected output?
Edit: I got the expected output using this bash command:
echo -n PONT4uYmTYwiP0omcAxZG8a3vKI= | base64 -d | xxd -p