On Jan 6, 2008, at 12:37 PM, Kurt Hansen wrote:
I'm using Crypt::RSA module for generating public & private keys. Now theTry the "blob" type. I think varchar is too short to store the private key in a format Crypt:RSA expects. We store the keys in files, but store the encrypted data in "blob" records.problem is that when I'm storing the keys in the database, and againbringing them to do the signature or verification the Crypt::RSA module is unable to understand the key format. I'm storing the keys in the Varcharfield of the MySQL.Could any body tell me when storing the keys in the databases what would bethe type of the field or how to work with the keys??
i save as TEXT in postgresyou need to make sure that you're reading/writing them correctly. some modules use base16, base32, base64 ; its a PITA realizing that your issues are entirely with base representation.
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.