Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple encryption

Status
Not open for further replies.

switchhead

Technical User
Mar 19, 2003
5
IE
Hi,

I'm using perl and snmpget/snmpset to change some parameters on switches.

The problem is I don't want to leave the private community string in cleartext within the program. I know snmp has versions that can encrypt passwords but I'm using v1.

Is there a simple hash method where I can generate a hash of a string, store this hash as a variable in the program and then do something like $private_string = unhash($hash) ?
 
Crypt::Blowfish
on has worked for me

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top