Skip to main content

This is a bit-encoder module

Project description

About

This library turns bytes into bits and allows them to be encrypted with a password

Installing:

pip install shifrator

Using:

BitEncode

from shifrator import BitArray
data = BitArray('Hello'.encode('UTF-8'))
print(data) # Printing bits
data.bitEncode('password') # Encoding with password, password must be str
print(data.to_bytes()) # printing bytes
data.bitDecode('password') # Decoding with password, password must be str
print(data.to_bytes()) # Printing of original value

XOR

from shifrator import BitArray
data = BitArray('Hello'.encode('UTF-8'))
print(data) # Printing bits
key = data.xorEncode() # Return key
print(data.to_bytes()) # printing bytes
data.xorDecode(key) # Decoding with key, key must be bytes
print(data.to_bytes()) # Printing of original value

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

bit_shifrator-0.5-py2.py3-none-any.whl (2.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bit_shifrator-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: bit_shifrator-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for bit_shifrator-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 27540c55ff81fdadf265e8024185d92a48efad123934d8bce0903cb88e78c173
MD5 a3d5829424d16dfd3b52fb5b68010f4d
BLAKE2b-256 a0b84d3615effb9b53c5674eac4493ae36427c789d521e84b4b2988c1b7d8a13

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