# c7d
> Tiny Cisco Type 7 (c7) encoder/decoder with a CLI.
⚠️ **Security warning:** Cisco *Type 7* is a simple XOR **obfuscation**, *not* cryptography.Do not rely on it to protect secrets.
## Installation
```bash
pip install c7d
```
## Usage
### CLI
```bash
# Decrypt a Type 7 string
c7d decrypt 060506324F41
# => cisco
# Encrypt plaintext (seed defaults to 00)
c7d encrypt cisco --seed 6
# => 060506324F41
```
#### Run without installation
```bash
uvx c7d --help
```
### Library
```python
from c7d import encrypt, decrypt
cipher = encrypt("cisco", seed=6) # '060506324F41'
plain = decrypt(cipher) # 'cisco'
```
## API
- `c7d.encrypt(plain: str, seed: int = 0) -> str`
- `c7d.decrypt(x: str) -> str`
## Rationale
This implements the well-known Cisco Type 7 algorithm using the 53-character key string
`dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87`. The algorithm XORs each
plaintext byte with a position-dependent character from this key, starting at an index
based on a two-digit decimal seed (00–99). The output is the seed followed by uppercase
hex bytes.
## License
MIT
Raw data
{
"_id": null,
"home_page": null,
"name": "c7d",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cisco, type7, password, decoder, encoder, security, networking",
"author": "Emil Bisgaard Commerou",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/87/49/07c1b53bb87818d1b739519226597b87fa4b513e332a7a792ed9d9785d3f/c7d-0.1.0.tar.gz",
"platform": null,
"description": "\n# c7d\n\n> Tiny Cisco Type 7 (c7) encoder/decoder with a CLI.\n\n\u26a0\ufe0f **Security warning:** Cisco *Type 7* is a simple XOR **obfuscation**, *not* cryptography.Do not rely on it to protect secrets.\n\n## Installation\n\n```bash\npip install c7d\n```\n\n## Usage\n\n### CLI\n\n```bash\n# Decrypt a Type 7 string\nc7d decrypt 060506324F41\n# => cisco\n\n# Encrypt plaintext (seed defaults to 00)\nc7d encrypt cisco --seed 6\n# => 060506324F41\n```\n\n#### Run without installation\n\n```bash\nuvx c7d --help\n```\n\n### Library\n\n```python\nfrom c7d import encrypt, decrypt\n\ncipher = encrypt(\"cisco\", seed=6) # '060506324F41'\nplain = decrypt(cipher) # 'cisco'\n```\n\n## API\n\n- `c7d.encrypt(plain: str, seed: int = 0) -> str`\n- `c7d.decrypt(x: str) -> str`\n\n## Rationale\n\nThis implements the well-known Cisco Type 7 algorithm using the 53-character key string\n`dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87`. The algorithm XORs each\nplaintext byte with a position-dependent character from this key, starting at an index\nbased on a two-digit decimal seed (00\u201399). The output is the seed followed by uppercase\nhex bytes.\n\n## License\n\nMIT\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Tiny Cisco Type 7 (c7) encoder/decoder with a CLI.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://example.com/c7d",
"Repository": "https://example.com/c7d"
},
"split_keywords": [
"cisco",
" type7",
" password",
" decoder",
" encoder",
" security",
" networking"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "40f7a14c6f2136446795bc1bc700110740d47462d80e8da47e4f59b9623227ee",
"md5": "f6a94dd53e29715a1eb42ca18af89c61",
"sha256": "9b36095656511777e9ca572e4a9f90108fb6f3f132b772b66c8b9c0b4c447ba7"
},
"downloads": -1,
"filename": "c7d-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f6a94dd53e29715a1eb42ca18af89c61",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4611,
"upload_time": "2025-10-21T11:32:46",
"upload_time_iso_8601": "2025-10-21T11:32:46.226660Z",
"url": "https://files.pythonhosted.org/packages/40/f7/a14c6f2136446795bc1bc700110740d47462d80e8da47e4f59b9623227ee/c7d-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "874907c1b53bb87818d1b739519226597b87fa4b513e332a7a792ed9d9785d3f",
"md5": "87171647be310238247cca98448d5c7f",
"sha256": "73de1896497371270ae6d61b37bbf715308d44e14d8c1007075a5e2aca861c21"
},
"downloads": -1,
"filename": "c7d-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "87171647be310238247cca98448d5c7f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3287,
"upload_time": "2025-10-21T11:32:47",
"upload_time_iso_8601": "2025-10-21T11:32:47.467733Z",
"url": "https://files.pythonhosted.org/packages/87/49/07c1b53bb87818d1b739519226597b87fa4b513e332a7a792ed9d9785d3f/c7d-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-21 11:32:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "c7d"
}