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.1.0.tar.gz (3.0 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.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for enc67-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed93ae64b248f153bddcde2c283de494e4b858b1d0a0974e3126688a5032b100
MD5 f1400d231feba374010bfa72263eb969
BLAKE2b-256 cffe0d1748940c4e5ccbd4b2a9caababc3d23134758107cc0fb7e924f146d80c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: enc67-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44dd54a2e83e51a1cfe5b343c60f73388e1130f887ab419583a9b099e3b76ca3
MD5 075820520fc2cf90b1b9f5bb919d0a24
BLAKE2b-256 c4238fffc981c4faa7d6557fc39733d7391cf8c6308111af0b2603f8f65935f1

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