Skip to the content.

Table of Contents

generate()

To generate a PIN with PyPassKit, use the generate() function.

import pypassplex as ppx

password = ppx.pingen.generate(8) # the number given as an argument is the PIN length
print(password)

Arguments

The generate() function takes one optional argument:


entropy()

To determine the PIN entropy with PyPassKit, use the entropy() function.

import pypassplex as ppx

entropy = ppx.pingen.entropy(8) # the number given as an argument is the PIN length

Arguments

The entropy() function takes one optional argument:


Errors

The module raises standard Python exceptions with specific error codes when invalid configurations are provided.


Copyright (c) 2026 LukeS-05

PyPassPlex | LukeS-05 | GitHub | Site License