nautilus.auth.primitives package

Submodules

nautilus.auth.primitives.passwordHash module

class nautilus.auth.primitives.passwordHash.PasswordHash(hash_, rounds=None)[source]

Bases: object

This is a wrapper class over password hashes that abstracts equality

__eq__(candidate)[source]

Hashes the candidate string and compares it to the stored hash.

__repr__()[source]

Simple object representation.

classmethod coerce(key, value)[source]

Ensure that loaded values are PasswordHashes.

classmethod new(password, rounds)[source]

Creates a PasswordHash from the given password.

rehash(password)[source]

Recreates the internal hash.

Module contents