public static byte[] decodeBase32(byte[] arg0) { return ENCODER.decode(new String(arg0)); }
public static byte[] encodeBase32(byte[] arg0) { return ENCODER.encode(arg0).getBytes(); }
@Test public void testBase32() throws Exception { StringEncoding encoder = new StringEncoding( "0123456789abcdefghijklmnopqrstuv".toCharArray()); testEncoding(encoder, new byte[] { 0 }, "00"); testEncoding(encoder, new byte[] { 0, 0 }, "0000"); testEncoding(encoder, new byte[] { 10, 0 }, "1800"); testRoundTrip(encoder, Crypto.getRandomBytes(1)); testRoundTrip(encoder, Crypto.getRandomBytes(2)); testRoundTrip(encoder, Crypto.getRandomBytes(3)); testRoundTrip(encoder, Crypto.getRandomBytes(20)); testRoundTrip(encoder, Crypto.getRandomBytes(30)); }
@Test public void testBase32() throws Exception { StringEncoding encoder = new StringEncoding( "0123456789abcdefghijklmnopqrstuv".toCharArray()); testEncoding(encoder, new byte[] { 0 }, "00"); testEncoding(encoder, new byte[] { 0, 0 }, "0000"); testEncoding(encoder, new byte[] { 10, 0 }, "1800"); testRoundTrip(encoder, Crypto.getRandomBytes(1)); testRoundTrip(encoder, Crypto.getRandomBytes(2)); testRoundTrip(encoder, Crypto.getRandomBytes(3)); testRoundTrip(encoder, Crypto.getRandomBytes(20)); testRoundTrip(encoder, Crypto.getRandomBytes(30)); }
public static byte[] decodeBase32(byte[] arg0) { return ENCODER.decode(new String(arg0)); }
public static byte[] encodeBase32(byte[] arg0) { return ENCODER.encode(arg0).getBytes(); }
@Test public void testBase32() throws Exception { StringEncoding encoder = new StringEncoding( "0123456789abcdefghijklmnopqrstuv".toCharArray()); testEncoding(encoder, new byte[] { 0 }, "00"); testEncoding(encoder, new byte[] { 0, 0 }, "0000"); testEncoding(encoder, new byte[] { 10, 0 }, "1800"); testRoundTrip(encoder, Crypto.getRandomBytes(1)); testRoundTrip(encoder, Crypto.getRandomBytes(2)); testRoundTrip(encoder, Crypto.getRandomBytes(3)); testRoundTrip(encoder, Crypto.getRandomBytes(20)); testRoundTrip(encoder, Crypto.getRandomBytes(30)); }
public static byte[] decodeBase32(byte[] arg0) { return ENCODER.decode(new String(arg0)); }
public static byte[] encodeBase32(byte[] arg0) { return ENCODER.encode(arg0).getBytes(); }
@Test public void testBase32() throws Exception { StringEncoding encoder = new StringEncoding( "0123456789abcdefghijklmnopqrstuv".toCharArray()); testEncoding(encoder, new byte[] { 0 }, "00"); testEncoding(encoder, new byte[] { 0, 0 }, "0000"); testEncoding(encoder, new byte[] { 10, 0 }, "1800"); testRoundTrip(encoder, Crypto.getRandomBytes(1)); testRoundTrip(encoder, Crypto.getRandomBytes(2)); testRoundTrip(encoder, Crypto.getRandomBytes(3)); testRoundTrip(encoder, Crypto.getRandomBytes(20)); testRoundTrip(encoder, Crypto.getRandomBytes(30)); }
public static byte[] decodeBase32(byte[] arg0) { return ENCODER.decode(new String(arg0)); }
public static byte[] encodeBase32(byte[] arg0) { return ENCODER.encode(arg0).getBytes(); }
@Test public void testBase32() throws Exception { StringEncoding encoder = new StringEncoding( "0123456789abcdefghijklmnopqrstuv".toCharArray()); testEncoding(encoder, new byte[] { 0 }, "00"); testEncoding(encoder, new byte[] { 0, 0 }, "0000"); testEncoding(encoder, new byte[] { 10, 0 }, "1800"); testRoundTrip(encoder, Crypto.getRandomBytes(1)); testRoundTrip(encoder, Crypto.getRandomBytes(2)); testRoundTrip(encoder, Crypto.getRandomBytes(3)); testRoundTrip(encoder, Crypto.getRandomBytes(20)); testRoundTrip(encoder, Crypto.getRandomBytes(30)); }
public static byte[] decodeBase32(byte[] arg0) { return ENCODER.decode(new String(arg0)); }