I need to encrypt a integer, but all the crypto libraries only support strings.
What is the proper method to convert a integer to a binary string in Ruby? (not '10111', I think that it's ASCII values)
EDIT: I wasn't thinking about Rijndael as stream encryption.