shellsec


Nameshellsec JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/ByteBreach/shellsec
SummaryA tool to encrypt and decrypt Bash scripts using Base64 encoding.
upload_time2024-06-13 18:45:15
maintainerNone
docs_urlNone
authorFidal
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ShellSec

ShellSec is a Python package to encrypt and decrypt Bash scripts using Base64 encoding.

## Installation

You can install ShellSec using pip:

```bash
pip install shellsec
```

## Usage

### Command-line Interface

ShellSec provides a command-line interface for encrypting and decrypting Bash scripts.

#### Encrypt a Bash script

```bash
shellsec --encrypt input_script.sh output_script.sh
```

#### Decrypt an obfuscated Bash script

```bash
shellsec --decrypt input_script.sh output_script.sh
```

### Module Usage

You can also use ShellSec as a Python module in your scripts.

#### Encrypt a Bash script

```python
import shellsec

shellsec.encrypt_script('input_script.sh', 'output_script.sh')
```

#### Decrypt an obfuscated Bash script

```python
import shellsec

shellsec.decrypt_script('input_script.sh', 'output_script.sh')
```

## Example

Encrypt a Bash script:

```python
import shellsec

shellsec.encrypt_script('script.sh', 'encrypted_script.sh')
```

Decrypt an obfuscated Bash script:

```python
import shellsec

shellsec.decrypt_script('obfuscated_script.sh', 'decrypted_script.sh')
```

This will print "encrypted" if the script is successfully encrypted or decrypted, and "Not encrypted" if there's an error during the process.

```python
import shellsec

# Encrypt a script
if shellsec.encrypt_script('input_script.sh', 'output_script.sh'):
    print("File encrypted successfully.")
else:
    print("File not encrypted.")

# Decrypt a script
if shellsec.decrypt_script('input_script.sh', 'output_script.sh'):
    print("File decrypted successfully.")
else:
    print("File not decrypted.")
```

## Notes

- When encrypting, ShellSec encodes the script content using Base64 and embeds it in a Bash script for easy decryption.
- When decrypting, ShellSec extracts the Base64 encoded content and decodes it back to the original script.
- Ensure to keep your encrypted scripts safe, as they contain sensitive information.
- ShellSec is designed for simple encryption purposes and may not provide strong security against determined attackers.

## Thanks

Thank you for using ShellSec! If you find it helpful, consider starring the repository on GitHub.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ByteBreach/shellsec",
    "name": "shellsec",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Fidal",
    "author_email": "mrfidal@proton.me",
    "download_url": "https://files.pythonhosted.org/packages/8a/1f/6ad87f63b4477ca3d45386fda9f829cc5c338132db0628a0760b5d981501/shellsec-1.0.1.tar.gz",
    "platform": null,
    "description": "# ShellSec\r\n\r\nShellSec is a Python package to encrypt and decrypt Bash scripts using Base64 encoding.\r\n\r\n## Installation\r\n\r\nYou can install ShellSec using pip:\r\n\r\n```bash\r\npip install shellsec\r\n```\r\n\r\n## Usage\r\n\r\n### Command-line Interface\r\n\r\nShellSec provides a command-line interface for encrypting and decrypting Bash scripts.\r\n\r\n#### Encrypt a Bash script\r\n\r\n```bash\r\nshellsec --encrypt input_script.sh output_script.sh\r\n```\r\n\r\n#### Decrypt an obfuscated Bash script\r\n\r\n```bash\r\nshellsec --decrypt input_script.sh output_script.sh\r\n```\r\n\r\n### Module Usage\r\n\r\nYou can also use ShellSec as a Python module in your scripts.\r\n\r\n#### Encrypt a Bash script\r\n\r\n```python\r\nimport shellsec\r\n\r\nshellsec.encrypt_script('input_script.sh', 'output_script.sh')\r\n```\r\n\r\n#### Decrypt an obfuscated Bash script\r\n\r\n```python\r\nimport shellsec\r\n\r\nshellsec.decrypt_script('input_script.sh', 'output_script.sh')\r\n```\r\n\r\n## Example\r\n\r\nEncrypt a Bash script:\r\n\r\n```python\r\nimport shellsec\r\n\r\nshellsec.encrypt_script('script.sh', 'encrypted_script.sh')\r\n```\r\n\r\nDecrypt an obfuscated Bash script:\r\n\r\n```python\r\nimport shellsec\r\n\r\nshellsec.decrypt_script('obfuscated_script.sh', 'decrypted_script.sh')\r\n```\r\n\r\nThis will print \"encrypted\" if the script is successfully encrypted or decrypted, and \"Not encrypted\" if there's an error during the process.\r\n\r\n```python\r\nimport shellsec\r\n\r\n# Encrypt a script\r\nif shellsec.encrypt_script('input_script.sh', 'output_script.sh'):\r\n    print(\"File encrypted successfully.\")\r\nelse:\r\n    print(\"File not encrypted.\")\r\n\r\n# Decrypt a script\r\nif shellsec.decrypt_script('input_script.sh', 'output_script.sh'):\r\n    print(\"File decrypted successfully.\")\r\nelse:\r\n    print(\"File not decrypted.\")\r\n```\r\n\r\n## Notes\r\n\r\n- When encrypting, ShellSec encodes the script content using Base64 and embeds it in a Bash script for easy decryption.\r\n- When decrypting, ShellSec extracts the Base64 encoded content and decodes it back to the original script.\r\n- Ensure to keep your encrypted scripts safe, as they contain sensitive information.\r\n- ShellSec is designed for simple encryption purposes and may not provide strong security against determined attackers.\r\n\r\n## Thanks\r\n\r\nThank you for using ShellSec! If you find it helpful, consider starring the repository on GitHub.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool to encrypt and decrypt Bash scripts using Base64 encoding.",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/ByteBreach/shellsec"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0705044c84bdf25addb846a001d0ce51c74a186a2609172e8a8314b349904fd4",
                "md5": "b7151d87dfe9c73a44573f87972a833c",
                "sha256": "e619c24b7917d5afb471969f3dc21eaed10efef5c9c3d3b4bbaa9bacbe69a1ee"
            },
            "downloads": -1,
            "filename": "shellsec-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7151d87dfe9c73a44573f87972a833c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4767,
            "upload_time": "2024-06-13T18:45:13",
            "upload_time_iso_8601": "2024-06-13T18:45:13.829474Z",
            "url": "https://files.pythonhosted.org/packages/07/05/044c84bdf25addb846a001d0ce51c74a186a2609172e8a8314b349904fd4/shellsec-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a1f6ad87f63b4477ca3d45386fda9f829cc5c338132db0628a0760b5d981501",
                "md5": "bcc6c8ee9a09af057190355340318f82",
                "sha256": "a12cad6fc63dd5e6214c952a0bcd6a1090ad6abd1b0acbb34304dda07482898c"
            },
            "downloads": -1,
            "filename": "shellsec-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bcc6c8ee9a09af057190355340318f82",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4153,
            "upload_time": "2024-06-13T18:45:15",
            "upload_time_iso_8601": "2024-06-13T18:45:15.245087Z",
            "url": "https://files.pythonhosted.org/packages/8a/1f/6ad87f63b4477ca3d45386fda9f829cc5c338132db0628a0760b5d981501/shellsec-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-13 18:45:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ByteBreach",
    "github_project": "shellsec",
    "github_not_found": true,
    "lcname": "shellsec"
}
        
Elapsed time: 0.25160s