Skip to main content

Cryptography-inspired random generation experiment

Project description

senol-randomizer

An RNG-core-based random data generator written in a cryptographic style, but lacking any cryptographic proof, which creates an information asymmetry between the program and urandom.

How does it work?

  • First, it takes 256-bit numbers from /dev/urandom.
  • Second, it processes these numbers using the powmod() function from the gmpy library, applying the operation a b modn, and does this for each n.
  • The list of n values consists of 256-bit prime numbers.
  • This output is also used in the generation of other data types.

How To Use?

Function Name Description Arguments Returns
newstr() Create random string with unicode range. num:int, _min:int, _max:int str
newint() Create random integer with range. _min:int, _max:int int
newfloat() Create random float with range. _min:int, _max:int float
newbyte() Create random bytes. num:int bytes
newbool() Create random bool. No Argument bool
RNG() Core of library, create random big integer without range. No argument int

Project Repo GithubProject Repo PyPI

Author Github ProfileAuthor PyPI Profile

--Batuhan Şenol

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

senol_randomizer-0.1.6.post11.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

senol_randomizer-0.1.6.post11-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file senol_randomizer-0.1.6.post11.tar.gz.

File metadata

  • Download URL: senol_randomizer-0.1.6.post11.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for senol_randomizer-0.1.6.post11.tar.gz
Algorithm Hash digest
SHA256 f18aab56ec788bbcc41bd0a96175dac832b725825f0a753779a2fee0d635c884
MD5 d22439ef305c2770f1580e173dfefee4
BLAKE2b-256 0ef8fa5167f4389fb8bfa39c809d8c066a6cf44554ac1fbd24e112dab7ef4c5a

See more details on using hashes here.

File details

Details for the file senol_randomizer-0.1.6.post11-py3-none-any.whl.

File metadata

File hashes

Hashes for senol_randomizer-0.1.6.post11-py3-none-any.whl
Algorithm Hash digest
SHA256 e2837e32e99f329b8e0732888b794bf4b4c77e7085b951493a416e6b0b17cb24
MD5 4e6f35c22aef35d13f1c6acd5ca47cd7
BLAKE2b-256 44b9d7149b380fcb2cffac6049f830e9d93461b8fa79503969361d9d7473a294

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