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:
Metadata
Release files for ddcCryptography 1.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ddccryptography-1.0.13.tar.gz | 5.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| ddccryptography-1.0.13-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| ddccryptography-1.0.13-cp313-cp313-manylinux_2_39_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.39+ x86-64 | Details |
| ddccryptography-1.0.13-cp313-cp313-macosx_14_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 14.0+ ARM64 | Details |
| ddccryptography-1.0.13-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| ddccryptography-1.0.13-cp312-cp312-manylinux_2_39_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.39+ x86-64 | Details |
| ddccryptography-1.0.13-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details |
Total release size: 37.3 kB
Release files / ddccryptography-1.0.13.tar.gz
| Download URL | ddccryptography-1.0.13.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9269a4fe51367a332033464357408f923621a194e1b349a6b6fcb63d70d09306
|
|
BLAKE2b-256 checksum How to use checksums |
f9a8a389262b9de843b8a9b3b5fe70f805952a00a145e1e2610f812af87d28fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp313-cp313-win_amd64.whl
| Download URL | ddccryptography-1.0.13-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
74a3377a6c803766677912f30dbe7cb11fd7411609384ccdad3648bca09d65ef
|
|
BLAKE2b-256 checksum How to use checksums |
50ace1c617815f4642eaa359bb5c1c060a1a417ef231e43c53110d178c67cc39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp313-cp313-manylinux_2_39_x86_64.whl
| Download URL | ddccryptography-1.0.13-cp313-cp313-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.13 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
5dc405261132ef55b6225ed8ab6fac092faf2a17ba282eecf31d29b04d855850
|
|
BLAKE2b-256 checksum How to use checksums |
32ace522b425dab9bc1ffb85a88f7e7b47685d2595d7bea489695e394069d68e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | ddccryptography-1.0.13-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8df600a718d5714918a81e6431271166a50cb9914ba3821f9b1c1cdceb70c108
|
|
BLAKE2b-256 checksum How to use checksums |
f5ae06299058693a0cfe4a7c7e2b04d1593426b4886f99aedf9ac953ef4ecd16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp312-cp312-win_amd64.whl
| Download URL | ddccryptography-1.0.13-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
163f288789acfd091094acd4e0195a966f3c720b4a7b088749d91d1b812db61e
|
|
BLAKE2b-256 checksum How to use checksums |
0e5b7411645bd3741287d82fc06792bfc15b87cf8b2c9c1b809006bf293ed959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp312-cp312-manylinux_2_39_x86_64.whl
| Download URL | ddccryptography-1.0.13-cp312-cp312-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.12 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
de7fbe639bde1a78e79b2f6f7c6db46597ac7f5bb017e8671eb5370ac9b38eca
|
|
BLAKE2b-256 checksum How to use checksums |
5f5bbf11609f3bf15b1bbb9fc2056d6e10b013d85c33eae97bb4078e8407d519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ddccryptography-1.0.13-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | ddccryptography-1.0.13-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 5.3 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9a05c2d7a92682a3617343bf8e9e87a3e743a794901754f916e1c2e1672d472c
|
|
BLAKE2b-256 checksum How to use checksums |
017da97d26ad374749eacf1798d49f36589fa33bbb714863b890ba57d4dfd354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|