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?

import senol_randomizer as sr

sr.newstr(num=10, _min=31, _max=128) # _min and _max, is a unicode range.
sr.newint(_min=10, _max=100)
sr.newfloat(_min=1, _max=20)
sr.newbyte(num=100)
sr.newbool()
sr.RNG() # This is core function.

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.post8.tar.gz (7.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.6.post8-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: senol_randomizer-0.1.6.post8.tar.gz
  • Upload date:
  • Size: 7.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.6.post8.tar.gz
Algorithm Hash digest
SHA256 1cca1af131b33e9a0c50f621b615576b4aef78c6065840b4e259268043f08ad8
MD5 4a5a6e4b407d488aae71980f20d2e324
BLAKE2b-256 d2e71a3eddd91f70c1b7b3ca1a1660230b1064ac2a3ad368182d94876d26fb2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for senol_randomizer-0.1.6.post8-py3-none-any.whl
Algorithm Hash digest
SHA256 fc86e1e7602c0c752c0f97a6a27e81db31a7514cb1da8208fdcb830d38e9e161
MD5 a79bb7e216fa11be51f4513b35db77f2
BLAKE2b-256 4e30b8e1cfc39bfb77d3d3488887257a0c667e4a1b05d1a6e1583724aed4a2b8

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