API Documentation
Main module.
- z3_armor.entrypoint(argv=None)[source]
Entrypoint for command line interface.
- Parameters:
argv (Sequence[str] | None) –
- Return type:
None
- class z3_armor.Constraint[source]
Bases:
ABC
- class z3_armor.Z3Armor(secret, random_state=None)[source]
Bases:
object
- Parameters:
secret (bytes) –
random_state (int | None) –
- __init__(secret, random_state=None)[source]
Instantiated Z3Armor.
- Parameters:
secret (bytes) –
random_state (int | None) –
- Return type:
None
- verify(secret)[source]
Verify a password on the constraint generator.
- Parameters:
secret (bytes) –
- Return type:
bool
- generate(rand=None)[source]
Generate a new constraint and it into the generator.
- Parameters:
rand (Random | None) –
- Return type:
- weighted_sampling(rand, k)[source]
Get index using sampling.
- Parameters:
rand (Random) –
k (int) –
- Return type:
List[int]
- format(name)[source]
Format the algorithm with the premade template.
- Parameters:
name (str) –
- Return type:
str