Skip to content

MarcJHuber/cisco6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Type 6 encoder/decoder

The code here is largely based on information found in

https://github.com/CiscoDevNet/Type-6-Password-Encode/

and it's basically a C variant of the encode6.py you'll find there.

Compile:

cc -std=c99 -o type6 type6.c -lcrypto

Optional symlinks:

ln -s type6 decrypt_type6
ln -s type6 encrypt_type6

Usage:

# ./type6 -d <master_key> <encrypted_password>
# ./type6 -e <master_key> <cleartext_password>
# ./decrypt_type6 <master_key> <encrypted_password>
# ./encrypt_type6 <master_key> <cleartext_password>

Sample usage:

# ./type6 -d 'mySecretMasterkey' 'XOUDEUYHeLGdB`UAZKX\GK[iEgCWMZXEXN^dTGZ[UAAAB'
Decrypted password: 'mySecretPassword'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors