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.0rc1.tar.gz (13.8 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.0rc1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file einar-1.0rc1.tar.gz.

File metadata

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

File hashes

Hashes for einar-1.0rc1.tar.gz
Algorithm Hash digest
SHA256 5fbffd2695cefeb345455b4a5ff1b2f0257f7f9b3886f4b234f7663d1c558f42
MD5 f7e43d31d6af4e3964d119f1fea16677
BLAKE2b-256 10fee9183df77d034cf9fbf86e88543c331453f7fb956d7922664cd595464eae

See more details on using hashes here.

File details

Details for the file einar-1.0rc1-py3-none-any.whl.

File metadata

  • Download URL: einar-1.0rc1-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.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 4933efc0a32d96b3c71b06cfcc18385f364cda0d31a0576048b2a80e73f63267
MD5 5f0c63757544f99c04f0e0d2260b5194
BLAKE2b-256 c1f99fb79df0035b343a2c10e1af4943168be2a5cf91d1a49bb9374606797b54

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