Phonetic ID is a lightweight package for generating a easy to say ID
Usage
from phonetic_id import generate_phonetic_id
generate_phonetic_id(length=8) # mebifeka
generate_phonetic_id(length=8, append_digits=2) # motizigo58
Entropy
Phonetic IDs have low entropy, so they should not be used for cryptographic purposes.
Info
The length is always rounded to an even number.
There are 5 vowels and 14 consonants.
Each syllable consists of 1 vowel and 1 consonant, allowing for:
5 * 14 = 70 unique syllables
For example, generate_phonetic_id(length=8) produces 4 syllables (since each syllable has 2 characters), resulting in:
70^4 = 24,010,000 combinations ~24.51 bits of entropy
Entropy Table
| Length | Combinations | Entropy (bits) |
|---|---|---|
| 2 | 70 | ~6.13 |
| 4 | 4,900 | ~12.26 |
| 6 | 343,000 | ~18.39 |
| 8 | 24,010,000 | ~24.52 |
| 10 | 1,680,700,000 | ~30.65 |
| 12 | 117,649,000,000 | ~36.78 |
| 14 | 8,235,430,000,000 | ~42.90 |
| 16 | 576,480,100,000,000 | ~49.03 |
Increasing Entropy
You can increase entropy by using the append_digits argument, which adds N digits to the end.
This effectively multiplies the total number of combinations by 10^N.
Metadata
Release files for phonetic-id 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phonetic_id-1.0.0.tar.gz | 3.2 kB | Without provenance | Details for phonetic_id-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phonetic_id-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for phonetic_id-1.0.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / phonetic_id-1.0.0.tar.gz
| Download URL | phonetic_id-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc490ffc2e8c19017681258fd5391f9a1087f71d048aa05fe62b60c7176b11d4
|
|
BLAKE2b-256 checksum How to use checksums |
bc4e42ec4d0c73f6e3bd4f45ab8056b0283c6c0168b2ae7acbffbbb2d1add738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Release files / phonetic_id-1.0.0-py3-none-any.whl
| Download URL | phonetic_id-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62a43aeed1ea4fc8df3408329acf687a0b17bc2bf8d1f2450d067a2f08ae9a57
|
|
BLAKE2b-256 checksum How to use checksums |
a469d2b2dbd0916d405fac4ef9665c1d4d5094d3771c7e2531f7156a0c27ef27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Security for phonetic-id 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.