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

Installation

pip install senol-randomizer

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.12.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.12-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file senol_randomizer-0.1.12.tar.gz.

File metadata

  • Download URL: senol_randomizer-0.1.12.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.12.tar.gz
Algorithm Hash digest
SHA256 1f37736898b60b7f34dacdd4c75bf693be1472aab0fda98cdd49e74ac242913a
MD5 1a2bff5c9fe31ccbdbdad40d5fb189af
BLAKE2b-256 ac78553dc8d2c6132f323ec1c4401fd4e9b5399bc23e28d72e5d7890547b7fd3

See more details on using hashes here.

File details

Details for the file senol_randomizer-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for senol_randomizer-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 58f20cfc93bb4a93d89014cef5bef4e86cbf7cac0130e492ea397a55bb948c52
MD5 a6d03afead8daaa1af5c261605c9f83f
BLAKE2b-256 5be9aba2382f175fd9c68ad8a8bea582c8efb1228275795aab9af8b38fab39f3

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