GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Hash(3) User Contributed Perl Documentation Hash(3)

Cisco::Hash - De- and encrypts Cisco type 7 hashes

use Cisco::Hash qw(decrypt encrypt usage);

print encrypt('cisco', 15); # will produce 1511021F0725

print decrypt('1511021F0725'); # will produce cisco print decrypt(encrypt('cisco', 15)); # as will this too

usage; # prints information about the module

This Module decrypts all kind of Cisco encrypted hashes also referred to as type 7 passwords. Further you can encrypt any given string into a encrypted hash that will be accepted by any Cisco device as an encrypted type 7 password.

decrypt(encrypted_hash)
Paste the encrypted hash without any preceding information.

Exmaple: "decrypt('1511021F0725'); # Will return 'cisco'"

encrypt(passphrase, offset)
You can define any passphrase you like to encrpyt into a encrypted hash. Altough it seems that Cisco devices strip of all characters above the 224th position.

The offset describes at which position of the translate mask encryption should be startet. Due to the length of the mask (which is 53) allowed values are 0 to 52 (decimal).

Example: "encrypt('cisco', 15); # will return '1511021F0725'"

usage
Usage will give hints on how to use the methods provided by this module.

LORD INFERNALE "infernale@cpan.org"

THIS SOFTWARE IS NEITHER INTENDED FOR MALICIOUS USE NOR FOR THE USE IN ANY OTHER ILLEGAL PURPOSES.

Credits for orginal code and description hobbit@avian.org, SPHiXe, .mudge et al. and for John Bashinski <jbash@CISCO.COM> for Cisco IOS password encryption facts.

Copyright (c) 2008 LORD INFERNALE. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2008-01-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.