Skip to main content

A simple way to xor encryption

Project description

xor_encryption

yet another useless and random package

exemple

from xor_encryption import xor

message = "random test".encode()
key = "SsJflOuZt7g".encode()  # key *must* be the same length as the message

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.1.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.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_xor_encryption-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c6986ce33e97c7252e840094257a2ea098ae88aa4eef5f70c343f392d159d0df
MD5 5fb87524339dc0d86d83246c8dda8dab
BLAKE2b-256 eaae6ae04e39a92d0097585c4e5582e967b985c1228671fac17537ceef0b0bff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_xor_encryption-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08861bfd83a13005095e99484f083cf55573f742b1e989aa681eee25da7e49eb
MD5 b1b6ae747e8270ef44c3e8d37d483319
BLAKE2b-256 db51e6cc41b7ad6762badc73d78f8ba4c1b2ae1a727a0cf26d508fed87f2fbf9

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