Module network_hash_gen.juniper_junos.type_1

Expand source code
from network_hash_gen.cisco_ios import Type5 as CiscoType5


class Type1(CiscoType5):
    """
    Calculates the md5-crypt based type 1 hashes for Juniper Junos.
    """

    salt_length = 8

Classes

class Type1

Calculates the md5-crypt based type 1 hashes for Juniper Junos.

Expand source code
class Type1(CiscoType5):
    """
    Calculates the md5-crypt based type 1 hashes for Juniper Junos.
    """

    salt_length = 8

Ancestors

Class variables

var salt_chars : str

Inherited from: BaseHash.salt_chars

A string containing all characters that can be used in a salt.

var salt_length : int

Inherited from: BaseHash.salt_length

The length of the salt.

Static methods

def hash(password: str) ‑> str

Inherited from: Type5.hash

Calculates the hash …

def hash_salted(password: str, salt: str) ‑> str

Inherited from: Type5.hash_salted

Calculates a Cisco IOS/IOS-XE Type 5 hash with the given password and salt …

def hash_seeded(password: str, seed: str) ‑> str

Inherited from: Type5.hash_seeded

Calculates a hash with the given seed used for generating a appropriate salt …