Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Takes in a radix64 stored as a byte[] and converts it to binary
- * @param num A radix64 value
- * @return A binary value stored as a byte[]
- */
- private static byte[] convertToBinary(byte[] num)
- {
- BigInteger temp = new BigInteger(num); // Create a BigInteger with num
- String binary = temp.toString(2); // Convert num to binary
- return binary.getBytes(); // Set num to binary
- }
Add Comment
Please, Sign In to add comment