## [cipher_kit] Module which helps in encryption and decryption
This module helps in Encryption and decryption.
### Encryption Algorithm:
1. Create list of unicode value of each letter of key (key_list).
2. Iterate key_list (i).
3. Multiple text[i] with key_list[i] and store somewhere (data).
4. divide data by 2 and store remainder (remainder).
5. Now append data and remainder in our encrypted data.
6. Repeat this process until all data encrypted.
### Decryption Algorithm
1. Create a list of unicode value of each letter of key (key_list), index=0.
2. Create a list of pair of text (text_list = [[data, remainder], ...]).
3. Iterate text_list (i).
4.
5. Multiply first element of text_list[i] with 2
5. Add second element of text_list[i]
6. Now divide by key_list[index].
7. Append decrypted text with unicode character of this value.
8. Increment index by 1 and set to 0 if index >= length of key_list.
9. Repeat this process until all data decrypted.
### Usage
**How to import**
```python
from cipher_kit import Cipher
```
**To Encrypt**
```python
data = "Data to be encrypted"
key = "Secret key"
encrypted_data = Cipher.encrypt(data, key)
```
**To decrypt**
```python
encrypted_data: str
decryted_data = Cipher.decrypt(encrypted_data, key)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/PankajVishw50/cipher_kit",
"name": "cipher-kit",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Pankaj",
"author_email": "pankaj.vishw.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7e/98/095c30a2fe2d4a4fa318ecf4f5be32a1319cb9c35fcce99adca8f34add2e/cipher_kit-0.0.4.tar.gz",
"platform": null,
"description": "## [cipher_kit] Module which helps in encryption and decryption\r\n\r\nThis module helps in Encryption and decryption.\r\n\r\n### Encryption Algorithm:\r\n\r\n1. Create list of unicode value of each letter of key (key_list).\r\n2. Iterate key_list (i).\r\n3. Multiple text[i] with key_list[i] and store somewhere (data).\r\n4. divide data by 2 and store remainder (remainder).\r\n5. Now append data and remainder in our encrypted data.\r\n6. Repeat this process until all data encrypted.\r\n\r\n### Decryption Algorithm\r\n\r\n1. Create a list of unicode value of each letter of key (key_list), index=0.\r\n2. Create a list of pair of text (text_list = [[data, remainder], ...]).\r\n3. Iterate text_list (i).\r\n4. \r\n5. Multiply first element of text_list[i] with 2 \r\n5. Add second element of text_list[i] \r\n6. Now divide by key_list[index]. \r\n7. Append decrypted text with unicode character of this value.\r\n8. Increment index by 1 and set to 0 if index >= length of key_list.\r\n9. Repeat this process until all data decrypted.\r\n\r\n### Usage\r\n\r\n**How to import**\r\n```python\r\nfrom cipher_kit import Cipher\r\n```\r\n\r\n\r\n**To Encrypt**\r\n```python\r\ndata = \"Data to be encrypted\"\r\nkey = \"Secret key\"\r\n\r\nencrypted_data = Cipher.encrypt(data, key)\r\n```\r\n\r\n**To decrypt**\r\n```python\r\nencrypted_data: str\r\ndecryted_data = Cipher.decrypt(encrypted_data, key)\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Module which helps in encryption and decryption",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/PankajVishw50/cipher_kit"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0f6968813438379df9b435514a0eed23cb5d5bbc4d6bf2179e1e7cf93ac3ed4f",
"md5": "66d0a2ab5ed19eac7746ae4acec211da",
"sha256": "4308d181dcc5b52688bf3eedd9a2aa56ca124bda7ac99effa91d13b2b6db7676"
},
"downloads": -1,
"filename": "cipher_kit-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "66d0a2ab5ed19eac7746ae4acec211da",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5126,
"upload_time": "2023-06-29T10:23:38",
"upload_time_iso_8601": "2023-06-29T10:23:38.702013Z",
"url": "https://files.pythonhosted.org/packages/0f/69/68813438379df9b435514a0eed23cb5d5bbc4d6bf2179e1e7cf93ac3ed4f/cipher_kit-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7e98095c30a2fe2d4a4fa318ecf4f5be32a1319cb9c35fcce99adca8f34add2e",
"md5": "1721e9a73880418215c3ec5c052c9967",
"sha256": "4e0d9537a1431d629ae9599afe3323745f399f35533f54c02181ae33afb97ece"
},
"downloads": -1,
"filename": "cipher_kit-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "1721e9a73880418215c3ec5c052c9967",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4287,
"upload_time": "2023-06-29T10:23:40",
"upload_time_iso_8601": "2023-06-29T10:23:40.547198Z",
"url": "https://files.pythonhosted.org/packages/7e/98/095c30a2fe2d4a4fa318ecf4f5be32a1319cb9c35fcce99adca8f34add2e/cipher_kit-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-29 10:23:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PankajVishw50",
"github_project": "cipher_kit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cipher-kit"
}