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.3.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for castellum_pseudonyms-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2054119d04bb1d542e3f6cdc5da97f71c1945e31332c122fb56357396e198c0c |
|
MD5 | a3dbbbb528893f5269c4ef97cde5753f |
|
BLAKE2b-256 | 91a831641eda0a7ae627ccdf16a280653e4c66b39236083233b9a2b089381e0d |
Close
Hashes for castellum_pseudonyms-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abcedbb55625a990b75354a1d1445aa720401cce645fb5f26b688b715781ceb0 |
|
MD5 | a3ba1fb03569358fa347dd1a2ee4e1e3 |
|
BLAKE2b-256 | 7b6b57bdb262fce87a236b306a4303ec8e2fbbd0de210ff3af3ee9955835a1a2 |