A well maintained program to generate cryptographically safe randomised strings. Can be used for assigning unique IDs of any specified size. Can be alpha only or numeric or alphanumeric as specified.
Project description
randomisedString v1.4.1
pip install randomisedString --upgrade
A well maintained program to generate cryptographically safe randomised strings. Can be used for assigning unique IDs of any specified size. Can be alpha only or numeric or alphanumeric as specified.
To install:
pip install randomisedString --upgrade
pip3 install randomisedString --upgrade
python -m pip install randomisedString --upgrade
python3 -m pip install randomisedString --upgrade
Using this program is as simple as:
from randomisedString import Generator as StringGenerator
generator = StringGenerator()
print(generator.AlphaNumeric(10, 10))
>> 45HCMJ4SCy
print(generator.OnlyNumeric(10, 10))
>> 1127163
print(generator.OnlyAlpha(10, 10))
>> UjfQZDDOOq
print(generator.AlphaNumeric(5, 10))
>> FxgirdEYB
print(generator.OnlyNumeric(5, 10))
>> 917478
print(generator.OnlyAlpha(5, 10))
>> HqGiHqt
Future implementations:
- Include special characters.
This project is always open to suggestions and feature requests.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randomisedstring-1.4.1.tar.gz.
File metadata
- Download URL: randomisedstring-1.4.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc450365c43699d8274ef011b0a3957f8bee7eac621a885e49ec1e22b1b4ecb
|
|
| MD5 |
e17b8f0b6f167d4e00ee8e0ce7aad6ca
|
|
| BLAKE2b-256 |
9ca4fe358f82a409f860e7b96aaaf5df693d7529a2eb8e3686b2f79df997a5ff
|
File details
Details for the file randomisedstring-1.4.1-py3-none-any.whl.
File metadata
- Download URL: randomisedstring-1.4.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db5cb7a4098c42ac32eb6dd1dd85051633f8ec1b0dbbb170592d738a19fa5f02
|
|
| MD5 |
6bbdfcfeef62a24266eb27a1268fdbe5
|
|
| BLAKE2b-256 |
7020755e9deedacb11cdf9b7138cfa81b66d5496d9a28e71dea8e74e12ecac28
|