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.2.0.tar.gz
(4.7 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.2.0.tar.gz.
File metadata
- Download URL: rs1101-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61bc3ce2990f1beccf4467495e1d2ffbb9ce89217ab4c668275601e5313b6be3
|
|
| MD5 |
1ee179cf2452da4e633f54f2127b306e
|
|
| BLAKE2b-256 |
593e228e3f1000d7aaa0eff4c552c886ebe52c16da1c7d348be3271f98ff635e
|
File details
Details for the file rs1101-0.2.0-py3-none-any.whl.
File metadata
- Download URL: rs1101-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
b5036923506eb424fd4d20cd2b3928f45d1732b8f2d4d93ec3217cd083e5d7a9
|
|
| MD5 |
543012dcd25fd0c77fab3cf9c6abba1f
|
|
| BLAKE2b-256 |
8e0b6140feb83203444fac4e18fc6c3f232bbdc5333648f5762e31a17279acf3
|