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.


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

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date (3.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page