search for: public_key_fil

Displaying 2 results from an estimated 2 matches for "public_key_fil".

Did you mean: public_key_file
2009 Apr 24
4
Long string in crypting
I use a solution to crypt a string that I found using OpenSSL. But the crypted string becomes very 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/.
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
...best for what we need to do but I am not sure how to generate the key. The docs say: This is a shortcut for using an asymmetrical algorithm with a private/ public key file. To use this, generate a public and private key with Sentry::AsymmetricalSentry.save_random_rsa_key (private_key_file, public_key_file). If you want to encrypt the private key file with a symmetrical algorithm, pass a secret key (neither the key nor the decrypted value will be stored). Sentry::AsymmetricSentry.save_random_rsa_key(private_key_file, public_key_file, :key => ''secret_password'') My question...