switchhead
Technical User
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) ?
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) ?