Convert a string of 0-F into a byte array in Ruby

Viewed 18587

I am attempting to decrypt a number encrypted by another program that uses the BouncyCastle library for Java.

In Java, I can set the key like this: key = Hex.decode("5F3B603AFCE22359");

I am trying to figure out how to represent that same step in Ruby.

2 Answers
Related