# Encode and Decode strings with Cryptography
[![Donate](https://img.shields.io/badge/Donate-PayPal-brightgreen.svg?style=plastic)](https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ)
[![License](https://img.shields.io/github/license/ddc/ddcCryptography.svg)](https://github.com/ddc/ddcCryptography/blob/master/LICENSE)
[![PyPi](https://img.shields.io/pypi/v/ddcCryptography.svg)](https://pypi.python.org/pypi/ddcCryptography)
[![PyPI Downloads](https://static.pepy.tech/badge/ddcCryptography)](https://pepy.tech/projects/ddcCryptography)
[![codecov](https://codecov.io/gh/ddc/ddcCryptography/graph/badge.svg?token=Q25ZT1URLS)](https://codecov.io/gh/ddc/ddcCryptography)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A//actions-badge.atrox.dev/ddc/ddcCryptography/badge?ref=main&label=build&logo=none)](https://actions-badge.atrox.dev/ddc/ddcCryptography/goto?ref=main)
[![Python](https://img.shields.io/pypi/pyversions/ddcCryptography.svg)](https://www.python.org)
# Install
```shell
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
```python
from ddcCryptography import Cryptography
cp = Cryptography()
cp.generate_private_key()
```
+ ENCODE
+ Encodes a given string
```python
from ddcCryptography import Cryptography
str_to_encode = "test_str"
cp = Cryptography()
cp.encode(str_to_encode)
```
```python
from ddcCryptography import Cryptography
str_to_encode = "test_str"
cp = Cryptography("my_private_key")
cp.encode(str_to_encode)
```
+ DECODE
+ Decodes a given string
```python
from ddcCryptography import Cryptography
str_to_decode = "gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw=="
cp = Cryptography()
cp.decode(str_to_decode)
```
```python
from ddcCryptography import Cryptography
str_to_decode = "gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw=="
cp = Cryptography("my_private_key")
cp.decode(str_to_decode)
```
# Source Code
### Build
```shell
poetry build -f wheel
```
# Run Tests and Get Coverage Report using Poe
```shell
poetry update --with test
poe tests
```
# License
Released under the [MIT License](LICENSE)
# Buy me a cup of coffee
+ [GitHub Sponsor](https://github.com/sponsors/ddc)
+ [ko-fi](https://ko-fi.com/ddcsta)
+ [Paypal](https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ)
Raw data
{
"_id": null,
"home_page": "https://pypi.org/project/ddcCryptography",
"name": "ddcCryptography",
"maintainer": "Daniel Costa",
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "python3, python-3, python, cryptography, encode, encoder, decode, decoder, ddcCryptography",
"author": "Daniel Costa",
"author_email": "danieldcsta@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/74/26/0921cb40e8cb774f1d9794b6ded444fefd42859220d3278ef5bdb19bb43d/ddccryptography-1.0.10.tar.gz",
"platform": null,
"description": "# Encode and Decode strings with Cryptography\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-brightgreen.svg?style=plastic)](https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ)\n[![License](https://img.shields.io/github/license/ddc/ddcCryptography.svg)](https://github.com/ddc/ddcCryptography/blob/master/LICENSE)\n[![PyPi](https://img.shields.io/pypi/v/ddcCryptography.svg)](https://pypi.python.org/pypi/ddcCryptography)\n[![PyPI Downloads](https://static.pepy.tech/badge/ddcCryptography)](https://pepy.tech/projects/ddcCryptography)\n[![codecov](https://codecov.io/gh/ddc/ddcCryptography/graph/badge.svg?token=Q25ZT1URLS)](https://codecov.io/gh/ddc/ddcCryptography)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A//actions-badge.atrox.dev/ddc/ddcCryptography/badge?ref=main&label=build&logo=none)](https://actions-badge.atrox.dev/ddc/ddcCryptography/goto?ref=main)\n[![Python](https://img.shields.io/pypi/pyversions/ddcCryptography.svg)](https://www.python.org)\n\n\n# Install\n```shell\npip install ddcCryptography\n```\n\n# Cryptography\n\n+ GENERATE_PRIVATE_KEY\n + Generates a private key to be used instead of default one\n + But keep in mind that this private key WILL BE NEEDED TO DECODE FURTHER STRINGS\n + Example of custom private key as \"my_private_key\" bellow\n\n```python\nfrom ddcCryptography import Cryptography\ncp = Cryptography()\ncp.generate_private_key()\n```\n\n\n\n+ ENCODE\n + Encodes a given string\n```python\nfrom ddcCryptography import Cryptography\nstr_to_encode = \"test_str\"\ncp = Cryptography()\ncp.encode(str_to_encode)\n```\n\n```python\nfrom ddcCryptography import Cryptography\nstr_to_encode = \"test_str\"\ncp = Cryptography(\"my_private_key\")\ncp.encode(str_to_encode)\n```\n \n\n\n+ DECODE\n + Decodes a given string\n```python\nfrom ddcCryptography import Cryptography\nstr_to_decode = \"gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw==\"\ncp = Cryptography()\ncp.decode(str_to_decode)\n```\n\n```python\nfrom ddcCryptography import Cryptography\nstr_to_decode = \"gAAAAABnSdKi5V81C_8FkM_I1rW_zTuyfnxCvvZPGFoAoHWwKzceue8NopSpWm-pDAp9pwAIW3xPbACuOz_6AhZOcjs3NM7miw==\"\ncp = Cryptography(\"my_private_key\")\ncp.decode(str_to_decode)\n```\n\n\n\n# Source Code\n### Build\n```shell\npoetry build -f wheel\n```\n\n\n# Run Tests and Get Coverage Report using Poe\n```shell\npoetry update --with test\npoe tests\n```\n\n\n# License\nReleased under the [MIT License](LICENSE)\n\n\n\n# Buy me a cup of coffee\n+ [GitHub Sponsor](https://github.com/sponsors/ddc)\n+ [ko-fi](https://ko-fi.com/ddcsta)\n+ [Paypal](https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Encode and Decode strings with Cryptography",
"version": "1.0.10",
"project_urls": {
"Homepage": "https://pypi.org/project/ddcCryptography",
"Repository": "https://github.com/ddc/ddcCryptography"
},
"split_keywords": [
"python3",
" python-3",
" python",
" cryptography",
" encode",
" encoder",
" decode",
" decoder",
" ddccryptography"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "345e9018714a0cf2952018f611cbdaa64e929d3ea885a1e651059e1eb60a3360",
"md5": "e0bf602a512e5c2b838e0f17a98997a3",
"sha256": "24aecb8c4b56eb30fe6390b5da3492c856a6b3364c7560099431979b6a65554a"
},
"downloads": -1,
"filename": "ddccryptography-1.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0bf602a512e5c2b838e0f17a98997a3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 4514,
"upload_time": "2024-12-16T13:43:02",
"upload_time_iso_8601": "2024-12-16T13:43:02.420724Z",
"url": "https://files.pythonhosted.org/packages/34/5e/9018714a0cf2952018f611cbdaa64e929d3ea885a1e651059e1eb60a3360/ddccryptography-1.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "74260921cb40e8cb774f1d9794b6ded444fefd42859220d3278ef5bdb19bb43d",
"md5": "464a524abf472cc312aa2ffe29c3a803",
"sha256": "04f537c27b31aca2ec24022b9d9bf3c2321e09fad76dd25da8ab1fda1fa63ce2"
},
"downloads": -1,
"filename": "ddccryptography-1.0.10.tar.gz",
"has_sig": false,
"md5_digest": "464a524abf472cc312aa2ffe29c3a803",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 3916,
"upload_time": "2024-12-16T13:43:03",
"upload_time_iso_8601": "2024-12-16T13:43:03.714197Z",
"url": "https://files.pythonhosted.org/packages/74/26/0921cb40e8cb774f1d9794b6ded444fefd42859220d3278ef5bdb19bb43d/ddccryptography-1.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-16 13:43:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ddc",
"github_project": "ddcCryptography",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ddccryptography"
}