aries-askar 0.4.6

Askar cryptographic primitives and secure storage
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
from aries_askar import (
    Argon2,
    Argon2Parameters
)

def test_argon2():
    password = "my password"
    salt = "long enough salt"

    output = Argon2.derive_password(Argon2Parameters.INTERACTIVE, password, salt)

    assert output == bytes.fromhex("9ef87bcf828c46c0136a0d1d9e391d713f75b327c6dc190455bd36c1bae33259")