File: pwhash.pyi

package info (click to toggle)
trac-accountmanager 0.6.1%2Bsvn18669-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,552 kB
  • sloc: python: 6,863; javascript: 175; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 1,257 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from trac.core import Component, Interface


class IPasswordHashMethod(Interface):

    def generate_hash(user: str, password: str) -> str: ...
    def check_hash(user: str, password: str, hash: str) -> bool: ...


class HtPasswdHashMethod(Component):

    def generate_hash(self, user: str, password: str) -> str: ...
    def check_hash(self, user: str, password: str, hash: str) -> bool: ...


class HtDigestHashMethod(Component):

    def generate_hash(self, user: str, password: str) -> str: ...
    def check_hash(self, user: str, password: str, hash: str) -> bool: ...


def htdigest(user: str, realm: str, password: str) -> str: ...
def generate_hash(password: str, method: str) -> str: ...
def check_hash(password: str, the_hash: str) -> bool: ...
def _sha_digest(password: str) -> str: ...
def _passlib_generate_hash(password: str, method: str) -> str: ...
def _passlib_check_hash(password: str, the_hash: str) -> bool: ...
def _crypt_generate_hash(password: str, method: str) -> str: ...
def _crypt_check_hash(password: str, the_hash: str) -> bool: ...
def _mksalt(method: str) -> str: ...
def _unavai_error(): ...
def _unavai_generate_hash(password: str, method: str) -> str: ...
def _unavai_check_hash(password: str, the_hash: str) -> bool: ...