Encode/decode Base64 Passwords for Config Crawler

  • Updated

Base64 encoded password can be entered into the Device Rules section of Config Crawler. Base64 encoded password need to have base64 before the encoded password. The below is based on AKIPS v22.6. 

Base64 encoded passwords were introduced in 20.2, though there is no reference in the release notes.  

# Cisco Core Router Device Backup 
name:   Cisco-Core-Router-Daily 
group:  2-Core-LAN 
user:   akips 
pass:   base64 bXlQbGFpblRleHRQYXNzd29yZA== 
script: cisco-cfg-ios 
strip:  "/^ntp clock\-period/"

Encode a plain text password into Base64 using AKIPS CLI

This converts "myPlainTextPassword" into bXlQbGFpblRleHRQYXNzd29yZA==

 

akips@dev12-21$ echo -n "myPlainTextPassword" | b64encode - 
begin-base64 644 - 
bXlQbGFpblRleHRQYXNzd29yZA== 
====

  

Decode a Base64 encoded password from Config Crawler back into plain text using the AKIPS CLI

This converts "bXlQbGFpblRleHRQYXNzd29yZA==" into myPlainTextPassword

akips@<akips-server>$ echo -n "bXlQbGFpblRleHRQYXNzd29yZA==" | b64decode -mr; echo 
myPlainTextPassword

 

Was this article helpful?

/

Comments

0 comments

Please sign in to leave a comment.