aries-askar 0.4.6

Askar cryptographic primitives and secure storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from enum import IntEnum
from typing import Union
from . import bindings

class Argon2Parameters(IntEnum):
    MODERATE = 0
    INTERACTIVE = 1

class Argon2:
    def derive_password(
            parameter: Argon2Parameters,
            password: Union[bytes, str],
            salt: Union[bytes, str]
    ):
        return bytes(bindings.argon2_derive_password(parameter, password, salt))