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.


logo

python License Status Type Github

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_val:int, max_val:int str
newint() Create random integer with range. min_val:int, max_val:int int
newfloat() Create random float with range. min_val:int, max_val: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
choice() Selects a random element from the list. lst:list any
compress() Maps the given number into the range between min and max in a way that minimizes modulo bias. value,min_val:int,max_val:int 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.8.post2.tar.gz (8.5 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.8.post2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file senol_randomizer-0.1.8.post2.tar.gz.

File metadata

  • Download URL: senol_randomizer-0.1.8.post2.tar.gz
  • Upload date:
  • Size: 8.5 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.8.post2.tar.gz
Algorithm Hash digest
SHA256 695778d55d6427acde9bbc028699a3f38b585568e0063212c7f54d3a4d4ca701
MD5 c6b11318430ff5d5ccdf84cd557c693c
BLAKE2b-256 aa5dca06ef1232043c92c3426be699fe70aadcdca72dc95091282d15ed29f238

See more details on using hashes here.

File details

Details for the file senol_randomizer-0.1.8.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for senol_randomizer-0.1.8.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 75a77a84523bd218f17042c51442bf37d15966bdbf45693ad2ec83b201176f4d
MD5 84f6965bf3cdac0663638967837b6186
BLAKE2b-256 1405c8342ca390020f9026985495b95fdc12a664c7eb75c33bad556a0fb1d217

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