Skip to main content

XOR(gamma-sequence) symmetric enc/dec method

Project description

XOR symmetric encryption method to secure the “imposition” of a sequence consisting of random numbers on the plaintext. The sequence of random numbers is called the gamma-sequence and is used to encrypt or decrypt data.

Example:

import gXor

g = gXor.Gamma()

enc = g.crypt(“Hi, my name is … !”, “asd123”) print (enc) >>> х7azтядcсск.цhж 019

dec = g.decrypt(enc, “123asd”) print (dec) >>> hi, my name is …!

enc = g.crypt(“Привет, как тебя зовут?”, “123апу4”) print (enc) >>> ikdгх61ze4лg6a3z.ияцpl2

dec = g.decrypt(enc, “123апу4”) print (dec) >>> привет, как тебя зовут?

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gXor-0.1.zip (3.4 kB view details)

Uploaded Source

File details

Details for the file gXor-0.1.zip.

File metadata

  • Download URL: gXor-0.1.zip
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gXor-0.1.zip
Algorithm Hash digest
SHA256 2ef3f7424ea4dd5b9ef5ffbf22d86b3d49eb711240f3b948a201c041a76e5357
MD5 14e28166b58b585b727ed4f508a14f7c
BLAKE2b-256 a84324a0c8f3211493ebc2032c6890d416a505c395b66fc28b234f03e9f4de38

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