Skip to main content

Encode bytes as a stream of 67s and 76s, with optional XOR obfuscation.

Project description

enc67

Encode bytes as a stream of 67 and 76 tokens. Optional repeating-XOR key for light obfuscation.

⚠️ Not real encryption. The optional key is repeating-XOR (Vigenère on bytes). Use it as a toy or for fun — not for secrets.

Install

pip install enc67

Use it

from enc67 import encrypt, decrypt

ct = encrypt("Hi", key="secret")
# '67 67 76 76 76 67 76 76 67 67 67 67 76 76 67 67'

decrypt(ct, key="secret")
# 'Hi'

Or from the CLI:

enc67 encrypt "Hi" secret
enc67 decrypt "67 67 76 ..." secret

How it works

  1. Encode UTF-8.
  2. (Optional) XOR with the repeating key.
  3. For each byte, emit 8 tokens: 67 for bit 0, 76 for bit 1, big-endian.

No key → pure encoding. With a key → toy obfuscation.

License

MIT.

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

enc67-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

enc67-0.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file enc67-0.2.0.tar.gz.

File metadata

  • Download URL: enc67-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for enc67-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b8426f7d98d12d481737aef67a9332bacc0c6a1f2ac0881554f7a4b11307af52
MD5 ba109f23aebd7c9dd0c91839fc98a679
BLAKE2b-256 06ac93e69647d10208edc512310355c23df4c58cc7eba7f7d32f541f9e947954

See more details on using hashes here.

File details

Details for the file enc67-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: enc67-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for enc67-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 280245067b3e1a5201ddd2f2e094f62237dc31254d6bf61091b46fb91a379a05
MD5 e667ad493b14e0a65aa5decc665fae12
BLAKE2b-256 3056805e5f4b6cf7182a5efa6e42b0ae8b0722dbc6463cd32fba2688ac8c3578

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