Skip to main content

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


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.3.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rs1101-0.3.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file rs1101-0.3.1.tar.gz.

File metadata

  • Download URL: rs1101-0.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for rs1101-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e2976bc04177d3f8c31254b8a07c4dffc54d7ad95844578004f07fa6272d8b37
MD5 5aa0259253f2d2a18667b2f5005f70a2
BLAKE2b-256 4196ef7c0a6c10d462033b6a859af39f462824a79d2d3c10adc68a131d6179df

See more details on using hashes here.

File details

Details for the file rs1101-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: rs1101-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for rs1101-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae1b42ef2b652c47a8c6a7cc3f0a6aa47ced257a65b8a6a834846f279ba79f6
MD5 00859053b601bc800e5e874dc1db1b6a
BLAKE2b-256 3c2210acd8b72c1ae91978a82df9e3c38e0456f67788202148dcc81c6047c47a

See more details on using hashes here.

Supported by

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