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.13.post1.tar.gz (9.8 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.13.post1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file senol_randomizer-0.1.13.post1.tar.gz.

File metadata

  • Download URL: senol_randomizer-0.1.13.post1.tar.gz
  • Upload date:
  • Size: 9.8 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.13.post1.tar.gz
Algorithm Hash digest
SHA256 2c93ff2e809efaba65e653d4a85a107873ab36b6c9a1b4b2928165b42fc20342
MD5 8fd862318cf73a17ecd6cd4a793461cd
BLAKE2b-256 2d0e690483cee06d9e06c44bee014f8d2f06799bcdd7f34a631b88b8664de6c1

See more details on using hashes here.

File details

Details for the file senol_randomizer-0.1.13.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for senol_randomizer-0.1.13.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e45e83f4504b2b8343d8447fdaf0950b793a666d7b798169a9e9bdfd1bcf759
MD5 07dd8b50b86e17ffc60a03390f12c2a7
BLAKE2b-256 fe2ceb5c9cc98189df8d72ac099f801ae66588a5d321bc1007674051b909efd5

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