mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
21
django-stubs-generated/utils/crypto.pyi
Normal file
21
django-stubs-generated/utils/crypto.pyi
Normal file
@@ -0,0 +1,21 @@
|
||||
from hmac import HMAC
|
||||
from typing import Any, Callable, Optional, Union
|
||||
|
||||
using_sysrandom: bool
|
||||
|
||||
def salted_hmac(
|
||||
key_salt: str,
|
||||
value: Union[bytes, str],
|
||||
secret: Optional[Union[bytes, str]] = ...,
|
||||
) -> HMAC: ...
|
||||
def get_random_string(length: int = ..., allowed_chars: str = ...) -> str: ...
|
||||
def constant_time_compare(
|
||||
val1: Union[bytes, str], val2: Union[bytes, str]
|
||||
) -> bool: ...
|
||||
def pbkdf2(
|
||||
password: Union[bytes, str],
|
||||
salt: Union[bytes, str],
|
||||
iterations: int,
|
||||
dklen: int = ...,
|
||||
digest: Optional[Callable] = ...,
|
||||
) -> bytes: ...
|
||||
Reference in New Issue
Block a user