This release is a pre-release and may not be stable for production use.
==============
The CTX defense library.
Installation
============
- Install the latest stable version using ``pip``:
```sh
pip install ctx-defense
```
Basic Usage
===========
- Import the CTX class from ctx and initialize the ctx object:
```python
from ctx_defense import CTX
ctx_object = CTX()
```
- Protect a secret from an origin with a specific alphabet:
```python
protected_secret = ctx_object.protect(secret, origin, alphabet)
```
- Retrieve the permutations for all origins:
```python
permutations = ctx_object.get_permutations()
```
- For more information on the CTX library and the classes it implements visit the defense's [website](https://github.com/dimkarakostas/ctx).
Example
=======
```python
from ctx_defense import CTX
secret = 'A secret string'
origin = 'user1'
alphabet = 'ASCII'
ctx_object = CTX()
protected_secret = ctx_object.protect(secret, origin, alphabet)
permutations = ctx_object.get_permutations()
```
Metadata
Release files for ctx-defense 1.0.0.dev20161106
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctx_defense-1.0.0.dev20161106-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ctx_defense-1.0.0.dev20161106-py2.py3-none-any.whl |
Release files / ctx_defense-1.0.0.dev20161106-py2.py3-none-any.whl
| Download URL | ctx_defense-1.0.0.dev20161106-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fad79ac4970b6fb51693714f2601ca6ce7209a6abb91b7f26301689482027f04
|
|
BLAKE2b-256 checksum How to use checksums |
44210d5b45680bbbf3a1e4b1a6306382416cc5de1bd7cde825646d8389285574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ctx-defense 1.0.0.dev20161106
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.