Python3 password manager library.
Project description
Einar
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
einar-1.0rc1-py3-none-any.whl
(14.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fbffd2695cefeb345455b4a5ff1b2f0257f7f9b3886f4b234f7663d1c558f42
|
|
| MD5 |
f7e43d31d6af4e3964d119f1fea16677
|
|
| BLAKE2b-256 |
10fee9183df77d034cf9fbf86e88543c331453f7fb956d7922664cd595464eae
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4933efc0a32d96b3c71b06cfcc18385f364cda0d31a0576048b2a80e73f63267
|
|
| MD5 |
5f0c63757544f99c04f0e0d2260b5194
|
|
| BLAKE2b-256 |
c1f99fb79df0035b343a2c10e1af4943168be2a5cf91d1a49bb9374606797b54
|