This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def junos_crypt(plain, salt=None, stable_crypt=False): | |
| """ | |
| create and return a reversible Junos crypted passphrase, | |
| which can be used as a passphrase in places where the plain | |
| text must be accessible to the RE, such as BGP peerings | |
| :param plain: plain text passphrase | |
| :param salt: salt | |
| :param stable_crypt: always return the same hash without rotation |