Skip to main content

A simple way to xor encryption

Project description

simple_xor_encryption

yet another useless and random package

exemple

from simple_xor_encryption import xor

message = "random test".encode()
key = "SsJt7g".encode()  # key length does not have to match data length

encrypted_message = xor(message, key)
decrypted_message = xor(encrypted_message, key)
print(message == decrypted_message)

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

simple_xor_encryption-0.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_xor_encryption-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_xor_encryption-0.0.2.tar.gz.

File metadata

  • Download URL: simple_xor_encryption-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for simple_xor_encryption-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bd4c4210ad7331cb47bcbd923c8fad4ddafa0bc60f4c21a60dbe80e0a0493515
MD5 fdbf1401d8e3ab2c89f3ad5efc4209aa
BLAKE2b-256 cc9033d1e2469f05f57d9fd54cf5612b86485f2aeb7df726a1745f68b2a48261

See more details on using hashes here.

File details

Details for the file simple_xor_encryption-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_xor_encryption-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd0b6868636e9ccd225a4f06c39ed4f7f845c01d4c8e08f6ac101f3974baf51
MD5 44e047164ea4b65668a4fea4a0c8e53c
BLAKE2b-256 48a04dcf5807420728ed6d08f5b1e351e1f072b3e0b2b815949c1401fba5e211

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