Encode and Decode strings with Cryptography
Project description
Encode and Decode strings with Cryptography
Table of Contents
Install
pip install ddcCryptography
Cryptography
Generate Private Key
- Generates a private key to be used instead of default one
- But keep in mind that this private key WILL BE NEEDED TO DECODE FURTHER STRINGS
- Example of custom private key as "my_private_key" bellow
from ddcCryptography import Cryptography
cp = Cryptography()
cp.generate_private_key()
Encode
- Encodes a given string
from ddcCryptography import Cryptography
str_to_encode = "test_str"
cp = Cryptography()
cp.encode(str_to_encode)
from ddcCryptography import Cryptography
str_to_encode = "test_str"
cp = Cryptography("my_private_key")
cp.encode(str_to_encode)
Decode
- Decode a given string
from ddcCryptography import Cryptography
str_to_decode = "gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw=="
cp = Cryptography()
cp.decode(str_to_decode)
from ddcCryptography import Cryptography
str_to_decode = "gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw=="
cp = Cryptography("my_private_key")
cp.decode(str_to_decode)
Development
Building from Source
poetry build -f wheel
Running Tests
poetry update --with test
poe tests
License
Released under the MIT License
Support
If you find this project helpful, consider supporting development:
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
Built Distributions
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
File details
Details for the file ddccryptography-1.0.13.tar.gz.
File metadata
- Download URL: ddccryptography-1.0.13.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9269a4fe51367a332033464357408f923621a194e1b349a6b6fcb63d70d09306
|
|
| MD5 |
3e120f9ea3ace6d316ee3909ffbf3a0c
|
|
| BLAKE2b-256 |
f9a8a389262b9de843b8a9b3b5fe70f805952a00a145e1e2610f812af87d28fd
|
File details
Details for the file ddccryptography-1.0.13-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a3377a6c803766677912f30dbe7cb11fd7411609384ccdad3648bca09d65ef
|
|
| MD5 |
99b2067a3ab70d920da117088061b814
|
|
| BLAKE2b-256 |
50ace1c617815f4642eaa359bb5c1c060a1a417ef231e43c53110d178c67cc39
|
File details
Details for the file ddccryptography-1.0.13-cp313-cp313-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp313-cp313-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.13, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dc405261132ef55b6225ed8ab6fac092faf2a17ba282eecf31d29b04d855850
|
|
| MD5 |
dbbf62b548953324227f2fd39e0ed517
|
|
| BLAKE2b-256 |
32ace522b425dab9bc1ffb85a88f7e7b47685d2595d7bea489695e394069d68e
|
File details
Details for the file ddccryptography-1.0.13-cp313-cp313-macosx_14_0_arm64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp313-cp313-macosx_14_0_arm64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.13, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8df600a718d5714918a81e6431271166a50cb9914ba3821f9b1c1cdceb70c108
|
|
| MD5 |
2df1a9a3d188fbbc9c17bc7184aaff72
|
|
| BLAKE2b-256 |
f5ae06299058693a0cfe4a7c7e2b04d1593426b4886f99aedf9ac953ef4ecd16
|
File details
Details for the file ddccryptography-1.0.13-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163f288789acfd091094acd4e0195a966f3c720b4a7b088749d91d1b812db61e
|
|
| MD5 |
010847014c131f1ed551e2a169afb86b
|
|
| BLAKE2b-256 |
0e5b7411645bd3741287d82fc06792bfc15b87cf8b2c9c1b809006bf293ed959
|
File details
Details for the file ddccryptography-1.0.13-cp312-cp312-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp312-cp312-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de7fbe639bde1a78e79b2f6f7c6db46597ac7f5bb017e8671eb5370ac9b38eca
|
|
| MD5 |
94e4f3f8f2b53c55685fb4bb184ceec9
|
|
| BLAKE2b-256 |
5f5bbf11609f3bf15b1bbb9fc2056d6e10b013d85c33eae97bb4078e8407d519
|
File details
Details for the file ddccryptography-1.0.13-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: ddccryptography-1.0.13-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 5.3 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a05c2d7a92682a3617343bf8e9e87a3e743a794901754f916e1c2e1672d472c
|
|
| MD5 |
cc01bcaadc4a893e69d2d52b3538d0d5
|
|
| BLAKE2b-256 |
017da97d26ad374749eacf1798d49f36589fa33bbb714863b890ba57d4dfd354
|