The CTX defense library.
Project description
ctx
==============
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()
```
==============
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()
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for ctx_defense-1.0.0.dev20161104-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d2d40a508817f8b177255ff802859fb67da1ae5835a14c5fde4f55b2ba4c15 |
|
MD5 | 45c03db7158d5c6d5d5e5ec95f9ed25e |
|
BLAKE2b-256 | 0e5776cdf5e250cdb30c6e4154069a6972ba4667f3d96ebc7fa1cb0614691d74 |