Simple affine cipher
a = Affine::Cipher.new(2176782371, 65182241782, 123235151) r = rand(123235150) # (should be smaller then the modulus) r == a.decipher(a.encipher r)
Copyright © 2009 Bryce Kerley. See LICENSE for details.