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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page