Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page