passprotecttxt


Namepassprotecttxt JSON
Version 0.13 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/passprotecttxt
Summaryprotects a text with a password
upload_time2023-09-06 00:51:47
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords password encrypt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# protects a text with a password 

## pip install passprotecttxt

#### Tested against Windows 10 / Python 3.10 / Anaconda 

### Encryption: 

The encrypt_text function provides a simple and secure way to encrypt text using AES encryption with CTR mode. AES is a widely used encryption algorithm known for its security and efficiency. CTR mode provides confidentiality and allows random access to the encrypted data.

### Decryption: 

The decrypt_text function complements the encryption process by decrypting the ciphertext back to its original plaintext form. It ensures that only authorized parties with the correct password can access and decrypt the data.


## copy & paste example

	
```python
from passprotecttxt import encrypt_text,decrypt_text

plaintext = "Hello, World!"
password = "MySecretPassword"

encrypted_text = encrypt_text(plaintext, password)
decrypted_text = decrypt_text(encrypted_text, password)

print("Plaintext:", plaintext)
print("Encrypted text:", encrypted_text)
print("Decrypted text:", decrypted_text)



# output

Plaintext: Hello, World!
Encrypted text: 63F720AC7E1F72B460271B2368
Decrypted text: Hello, World!



```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/passprotecttxt",
    "name": "passprotecttxt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "password,encrypt",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/60/41/70e42ad30f8abe94ef93e064ac97abeba64962f8c7a35f6e89f6d2fc77a9/passprotecttxt-0.13.tar.gz",
    "platform": null,
    "description": "\r\n# protects a text with a password \r\n\r\n## pip install passprotecttxt\r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n### Encryption: \r\n\r\nThe encrypt_text function provides a simple and secure way to encrypt text using AES encryption with CTR mode. AES is a widely used encryption algorithm known for its security and efficiency. CTR mode provides confidentiality and allows random access to the encrypted data.\r\n\r\n### Decryption: \r\n\r\nThe decrypt_text function complements the encryption process by decrypting the ciphertext back to its original plaintext form. It ensures that only authorized parties with the correct password can access and decrypt the data.\r\n\r\n\r\n## copy & paste example\r\n\r\n\t\r\n```python\r\nfrom passprotecttxt import encrypt_text,decrypt_text\r\n\r\nplaintext = \"Hello, World!\"\r\npassword = \"MySecretPassword\"\r\n\r\nencrypted_text = encrypt_text(plaintext, password)\r\ndecrypted_text = decrypt_text(encrypted_text, password)\r\n\r\nprint(\"Plaintext:\", plaintext)\r\nprint(\"Encrypted text:\", encrypted_text)\r\nprint(\"Decrypted text:\", decrypted_text)\r\n\r\n\r\n\r\n# output\r\n\r\nPlaintext: Hello, World!\r\nEncrypted text: 63F720AC7E1F72B460271B2368\r\nDecrypted text: Hello, World!\r\n\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "protects a text with a password",
    "version": "0.13",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/passprotecttxt"
    },
    "split_keywords": [
        "password",
        "encrypt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60860c2dadb40ae96465b1228a5061c596a405b4f9fa573fa2fcd906a76c3c9f",
                "md5": "c05d7ad0bacc0641936479bb0f14a567",
                "sha256": "d589a0d2e4de93d27bc16bb4d18896558662a41d361015b94d0d7e016504fb0c"
            },
            "downloads": -1,
            "filename": "passprotecttxt-0.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c05d7ad0bacc0641936479bb0f14a567",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5492,
            "upload_time": "2023-09-06T00:51:46",
            "upload_time_iso_8601": "2023-09-06T00:51:46.196654Z",
            "url": "https://files.pythonhosted.org/packages/60/86/0c2dadb40ae96465b1228a5061c596a405b4f9fa573fa2fcd906a76c3c9f/passprotecttxt-0.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "604170e42ad30f8abe94ef93e064ac97abeba64962f8c7a35f6e89f6d2fc77a9",
                "md5": "bfd04a296e5d9534883ccc3b4181ebeb",
                "sha256": "ae64d623d40768d56154870e74dd663204ab9cc6ac7f9200dc990f2ed17b3576"
            },
            "downloads": -1,
            "filename": "passprotecttxt-0.13.tar.gz",
            "has_sig": false,
            "md5_digest": "bfd04a296e5d9534883ccc3b4181ebeb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3938,
            "upload_time": "2023-09-06T00:51:47",
            "upload_time_iso_8601": "2023-09-06T00:51:47.939463Z",
            "url": "https://files.pythonhosted.org/packages/60/41/70e42ad30f8abe94ef93e064ac97abeba64962f8c7a35f6e89f6d2fc77a9/passprotecttxt-0.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-06 00:51:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "passprotecttxt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "passprotecttxt"
}
        
Elapsed time: 0.10750s