K07VN-Crypto


NameK07VN-Crypto JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/tnk-admin/K07VN_Crypto
SummaryBạn là 1 nhà phát triển phần mềm, công cụ ?
upload_time2023-12-05 05:00:28
maintainer
docs_urlNone
authorK07VN
requires_python>=3.6
license
keywords python crypto encode k07vn_crypto string pycryptodomex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # K07VN_Crypto #
https://github.com/TNK-ADMIN/K07VN_Crypto

* Vẫn hoạt động ổn định cho tới hiện tại
* Sử dụng Python >= 3.6

## **Installation** ##
```
pip install K07VN_Crypto
```
hoặc bạn có thể install từ github: 
```
pip install git+https://github.com/TNK-ADMIN/K07VN_Crypto@master
```

# **Usage** #

## Cơ Bản ##

Về cơ bản bạn chỉ cần install và import thư viện
```
from K07VN_Crypto import Crypto
```

Và sau đó có thể gán cho 1 biến hoặc không rồi sử dụng`
> ### Generate Key ###

```
crypto_instance = Crypto()

private_key, public_key = Crypto.generate_key()

plaintext = "Hello, World!"
encrypted_text = crypto_instance.encrypt(plaintext)
print("Encrypted:", encrypted_text)

decrypted_text = crypto_instance.decrypt(encrypted_text)
print("Decrypted:", decrypted_text)
```

> ### Custom Key ###

```

public_key = """\
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCXBKdgaHDJGAe9lk8Y0osRTEe
VT7s6n2POfJSPVRnj4pIBu3x2oqFlyuyZlxQfhBCOaK3kagiclePQFGuIt39r/j9
UgmXucae6XVDMRJYjCLBFvX5A93iKtuxYHs7PiHsH7B92Rc0xhKNmcyVhGoicrqd
qcReN1CExmVpSt0yJwIDAQAB
-----END PUBLIC KEY-----"""

private_key = """\
-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQCCXBKdgaHDJGAe9lk8Y0osRTEeVT7s6n2POfJSPVRnj4pIBu3x
2oqFlyuyZlxQfhBCOaK3kagiclePQFGuIt39r/j9UgmXucae6XVDMRJYjCLBFvX5
A93iKtuxYHs7PiHsH7B92Rc0xhKNmcyVhGoicrqdqcReN1CExmVpSt0yJwIDAQAB
AoGAbVS1VB5lwhme+DjajLglfE2nrW4HcYIVPmt2HZ1MTfLoIhKVu9LzfKlVv7Dz
2ZpxHmniW50w63sEjqN+HdMmZKyVHM/zvy2Sb1Soz+AJQ8xzL6Lw1KWpXuIObA5P
zfNyQt1AZFuqCamBsKmCHhgpSqypCKtxx5q+PBsbTg1rSeECQQC6cWPEkchWTD13
5f/UDs5qCcubQ3JBxLFtUImLDDoNjD1QtOzK0n9+05sD6YTKZXbrq6bhqf5m0rzJ
0ZUCmnCRAkEAsv5WJhnuyIsLsGhKkIZ1UfLluLopd0tHhK7riyM+j4SJf955FVFp
i29R2DhiKXFUms2Q/VOy3CsgBXK2rjBTNwJBALOG7+yd++ytKRtEy1zkjPoqSHZP
MbwGrFp4jJjpwxS8j2YhcUmz+7SiCchwmb9SiHpSJTVyvVdBYSxstTF2iSECQA2u
58MN5HUsO/6GWnzl6n4TRYBzqsvV02fPP25piVTLWv+NcFAy4xCnt+gBl293nHIh
GN5k0Z2HJnGELXbvds0CQQCIR5KG1o0Tb5ZCB0PoHZEVvBbSh0qLRkNwA5IO4npU
j26wV8QxpL9EAadJssR+X1Rky551qWPgWOc1RA2bBzXQ
-----END RSA PRIVATE KEY-----"""
crypto_instance = Crypto(public_key,private_key)
plaintext = "Hello, World!"
encrypted_text = crypto_instance.encrypt(plaintext)
print("Encrypted:", encrypted_text)

decrypted_text = crypto_instance.decrypt(encrypted_text)
print("Decrypted:", decrypted_text)
```


# **Kết thúc** #

## Contact ##

Zalo: 0964243159

Telegram: @tnk_k07vn

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tnk-admin/K07VN_Crypto",
    "name": "K07VN-Crypto",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "python,crypto,encode,K07VN_Crypto,string,pycryptodomex",
    "author": "K07VN",
    "author_email": "khanhnekyh2007@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e5/7a/5a857c2636621d117471f2f0b6f126ad3fff9130c149726e50f6b6d1fdf1/K07VN_Crypto-1.0.5.tar.gz",
    "platform": null,
    "description": "# K07VN_Crypto #\r\nhttps://github.com/TNK-ADMIN/K07VN_Crypto\r\n\r\n* V\u1eabn ho\u1ea1t \u0111\u1ed9ng \u1ed5n \u0111\u1ecbnh cho t\u1edbi hi\u1ec7n t\u1ea1i\r\n* S\u1eed d\u1ee5ng Python >= 3.6\r\n\r\n## **Installation** ##\r\n```\r\npip install K07VN_Crypto\r\n```\r\nho\u1eb7c b\u1ea1n c\u00f3 th\u1ec3 install t\u1eeb github: \r\n```\r\npip install git+https://github.com/TNK-ADMIN/K07VN_Crypto@master\r\n```\r\n\r\n# **Usage** #\r\n\r\n## C\u01a1 B\u1ea3n ##\r\n\r\nV\u1ec1 c\u01a1 b\u1ea3n b\u1ea1n ch\u1ec9 c\u1ea7n install v\u00e0 import th\u01b0 vi\u1ec7n\r\n```\r\nfrom K07VN_Crypto import Crypto\r\n```\r\n\r\nV\u00e0 sau \u0111\u00f3 c\u00f3 th\u1ec3 g\u00e1n cho 1 bi\u1ebfn ho\u1eb7c kh\u00f4ng r\u1ed3i s\u1eed d\u1ee5ng`\r\n> ### Generate Key ###\r\n\r\n```\r\ncrypto_instance = Crypto()\r\n\r\nprivate_key, public_key = Crypto.generate_key()\r\n\r\nplaintext = \"Hello, World!\"\r\nencrypted_text = crypto_instance.encrypt(plaintext)\r\nprint(\"Encrypted:\", encrypted_text)\r\n\r\ndecrypted_text = crypto_instance.decrypt(encrypted_text)\r\nprint(\"Decrypted:\", decrypted_text)\r\n```\r\n\r\n> ### Custom Key ###\r\n\r\n```\r\n\r\npublic_key = \"\"\"\\\r\n-----BEGIN PUBLIC KEY-----\r\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCXBKdgaHDJGAe9lk8Y0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9EAadJssR+X1Rky551qWPgWOc1RA2bBzXQ\r\n-----END RSA PRIVATE KEY-----\"\"\"\r\ncrypto_instance = Crypto(public_key,private_key)\r\nplaintext = \"Hello, World!\"\r\nencrypted_text = crypto_instance.encrypt(plaintext)\r\nprint(\"Encrypted:\", encrypted_text)\r\n\r\ndecrypted_text = crypto_instance.decrypt(encrypted_text)\r\nprint(\"Decrypted:\", decrypted_text)\r\n```\r\n\r\n\r\n# **K\u1ebft th\u00fac** #\r\n\r\n## Contact ##\r\n\r\nZalo: 0964243159\r\n\r\nTelegram: @tnk_k07vn\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "B\u1ea1n l\u00e0 1 nh\u00e0 ph\u00e1t tri\u1ec3n ph\u1ea7n m\u1ec1m, c\u00f4ng c\u1ee5 ?",
    "version": "1.0.5",
    "project_urls": {
        "Homepage": "https://github.com/tnk-admin/K07VN_Crypto"
    },
    "split_keywords": [
        "python",
        "crypto",
        "encode",
        "k07vn_crypto",
        "string",
        "pycryptodomex"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68ad7f48e93ad61374dfa33dd68a0c44fbb07aae1cc3064ea512d353b7559eda",
                "md5": "a145603a8d5e559b6aff26d903b6c4e2",
                "sha256": "94970f2a4cf95fb4bb5602ebd97e2605798c577ccf6193c7edd7b3368ace7384"
            },
            "downloads": -1,
            "filename": "K07VN_Crypto-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a145603a8d5e559b6aff26d903b6c4e2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3881,
            "upload_time": "2023-12-05T05:00:26",
            "upload_time_iso_8601": "2023-12-05T05:00:26.520816Z",
            "url": "https://files.pythonhosted.org/packages/68/ad/7f48e93ad61374dfa33dd68a0c44fbb07aae1cc3064ea512d353b7559eda/K07VN_Crypto-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e57a5a857c2636621d117471f2f0b6f126ad3fff9130c149726e50f6b6d1fdf1",
                "md5": "ec06623e2f0bd88a53a6360176e032f1",
                "sha256": "94d62af5e236fc8c88284d34203e0e83e82d11eee31ff628cc1cd0206a4dc3a3"
            },
            "downloads": -1,
            "filename": "K07VN_Crypto-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "ec06623e2f0bd88a53a6360176e032f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3978,
            "upload_time": "2023-12-05T05:00:28",
            "upload_time_iso_8601": "2023-12-05T05:00:28.290718Z",
            "url": "https://files.pythonhosted.org/packages/e5/7a/5a857c2636621d117471f2f0b6f126ad3fff9130c149726e50f6b6d1fdf1/K07VN_Crypto-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-05 05:00:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tnk-admin",
    "github_project": "K07VN_Crypto",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "k07vn-crypto"
}
        
Elapsed time: 0.17323s