> Hi All, > > Thanks a lot for the responses. I used Crypt::CBC using Blowfish. It > works as expected. > > I have one more query. Is there any way to store the key that we use to > encrypt so that only the program that will decrypt it will get access to > it? I can not store it in any database as I want to encrypt the database > user name and password. > > Thanks, > Nilanjan What "user" is running the program? Do you have root access on the server? Does your computer have to restart unattended?
Answering these questions may help provide specific answers. I think someone else has already replied with the standard answers. One options I have seen proposed is to have it as an environmental variable visible only to the "user" running the program. > ----- Original Message ----- > From: "William R. Mussatto" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 25, 2003 11:21 AM > Subject: Re: Encryption module > > >> > Hi, >> > >> > Can anyone tell me some of the Perl packages used for Encrypting or >> Decrypting some data mostly strings using some Public and Private >> key like RSA. Please suggest some.I want to encrypt/decrypt the >> database user and password. >> > >> > Thanks, >> > Nilanjan >> Look under Crypt::Blowfish for symmetric key (single key systems). >> You use the public private key systems if different parties will be >> encoding and decoding. That said for Passwords you can use a one way >> key which MD5 provides. You just encode the test password and then >> compare it with the encrypted password which is stored in the >> database. I guess you could use one half of a public private key >> system to do this. >> >> William R. Mussatto, Senior Systems Engineer >> Ph. 909-920-9154 ext. 27 >> FAX. 909-608-7061
