[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RSA Key Question

studlee2@gmail.com

4/11/2007 3:18:00 PM

I want to hardcode a public RSA key into a Ruby script so there is no
reliance on an external '.pem' file. When I do that the object is of
type string and OpenSSL throws an error.

How can I get the "pub_key = OpenSSL::PKey::RSA.new(<hardcoded public
key>)" to recognize the key?

Thanks,
_Stud