Skip to main content

Python3 password manager library.

Project description

Einar

PyPI - Downloads PyPI - License GitHub Tag

Python3 library that implements AES-128-ECB encryption.

Install

pip install einar

Quickstart

from einar import AES


key = b'' # The key must be exactly 16 bytes (128 bits)

cipher = AES(key)

message = b'Secret message to encrypt'

Encrypt

ciphertext = cipher.encrypt_ecb(message)
print(f"Ciphertext (bytes): {ciphertext}")

Decrypt

original_text = cipher.decrypt_ecb(ciphertext)
print(f"Original text: {original_text.decode('utf-8')}")

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

einar-1.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

einar-1.0.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file einar-1.0.0.tar.gz.

File metadata

  • Download URL: einar-1.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for einar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4602e2d402c7629b85cdaa7742bde2d91e588d0e1854c2ddae750c23ff857cc0
MD5 7f035dba53f2f2d8bf23c30a9807c185
BLAKE2b-256 ae93dbf92bb14f98f227c37e78647733f7b4cfaca4f7ead71a2b129093f09e76

See more details on using hashes here.

File details

Details for the file einar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: einar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for einar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73ec8c6533d7419e0ba585d170fb2f7d5439598fd4c70831e6d05b1ac83da848
MD5 0aab25e8048d78f68fe15e73645810e9
BLAKE2b-256 3a4c5769bc08cbe1ab20cb6bcbf08a6f157a81ff396d72680a7ee4fab9fd6ead

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