@VisibleForTesting
    @NonNull
    protected static String getDigest(String algo, byte[] toDigest) throws NoSuchAlgorithmException {
        MessageDigest md = MessageDigest.getInstance(algo);
        byte[] digest = md.digest(toDigest);

        return Hex.encode(digest);
    }
@Test
    public void testGetDigest() throws NoSuchAlgorithmException {
        assertEquals("355938cfe3b73a624297591972d27c01",
                MOTP.getDigest("MD5", "BOB".getBytes(StandardCharsets.UTF_8)));
        assertEquals("16d7a4fca7442dda3ad93c9a726597e4",
                MOTP.getDigest("MD5", "test1234".getBytes(StandardCharsets.UTF_8)));
    }