Generate secrect random strings. Convert random strings with integers.
Project description
$ rs # Generate a random string of lenth 10.
8Vlp66h9Wc
$ rs -l 16 # Generate a random string of lenth 16.
xVOKhNEe0xJ607Ch
$ rs -l 16 -c a # Specify a character set.
~_Ak-=0PNP}fo]j&h
length = 20
rs = random_string(length)
strength = strength(length, len(candidate))
print(rs, strength) # khfT6pghUm1n1cpZhTar 119
x = rs2int(rs)
y = int2rs(x)
print(rs, x, y) # khfT6pghUm1n1cpZhTar 415159970288189017488437341125226411 khfT6pghUm1n1cpZhTar
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
rs1101-0.1.1.tar.gz
(3.8 kB
view details)
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 rs1101-0.1.1.tar.gz.
File metadata
- Download URL: rs1101-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f69e0d353620aa0e2128134b9a41ebb176cd9235f7cc0674af25c251111e59a
|
|
| MD5 |
12e2571b13cdd57ba64a63c652cc094e
|
|
| BLAKE2b-256 |
5897666ae2273a8a1f00de5f92e94b44e4ffc018559992b059e25fcc6dda2400
|
File details
Details for the file rs1101-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rs1101-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
209bf6edaee7eb450e9d177a25c9cef23d7dfd1e8991b98f605195a65ec446ab
|
|
| MD5 |
cd1a2288d9ee6bc2f9c7159a58c5beea
|
|
| BLAKE2b-256 |
a1ce306a343e1216a2600270160070aed94b4e014c59783c291f17636a597473
|