algorithms to generate, validate, and normalize pseudonyms
Project description
Castellum Pseudonyms
Algorithms to generate, validate, and normalize pseudonyms.
This is part of the castellum project.
Installation
pip install castellum-pseudonyms
Usage
from castellum_pseudonyms import generate, clean
# generate a new random pseudonym
pseudonym = generate(bits=40)
# normalize and validate a pseudonym entered by a user
try:
pseudonym = clean(user_input)
except ValueError:
print('invalid pseudonym')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
castellum-pseudonyms-0.0.1.tar.gz
(14.3 kB
view hashes)
Close
Hashes for castellum-pseudonyms-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43404f36f613584719f68251f93370d6e768f157802040f7295b1bb65c2cf0a |
|
MD5 | 7997b5cb5cf9eebc2bbade25aba56489 |
|
BLAKE2b-256 | 0b17cc803ce6de6d7dc41a6f79ecf101b7ef950ce8cca45225b9f0f63ba20ab4 |