search for: public_encrypt

Displaying 1 result from an estimated 1 matches for "public_encrypt".

2009 Apr 24
4
Long string in crypting
...y long, too long for a varchar 255 to hold it. What can I do to make it shorter? Or should I just use text as column in the mysql db? public_key_file = ''lib/public.pem'' public_key = OpenSSL::PKey::RSA.new(File.read(public_key_file)) @encrypted_string = Base64.encode64(public_key.public_encrypt(string)) -- Posted via http://www.ruby-forum.com/.