Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions examples/symmetric_cipher.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from shadow_data.cryptohash.symmetric_cipher import Symmetricfrom torch.distributions.constraints import symmetric

# Symmetric encryption

This simple encryption and decryption approach use symmetric cryptography
Basically the user can generate a encryption key and use it to encrypt and decrypt data.

**The key management is user's responsability, ShadowData don't save any kind of keys or credentials.**
This simple encryption and decryption method uses symmetric cryptography. Users can generate an encryption key, which they can use to both encrypt and decrypt their data.

**Key management is the user’s responsibility; _ShadowData_ does not store any keys or credentials.**
## How to use

```python
Expand All @@ -30,7 +26,7 @@ Encrypted: b'gAAAAABnDAexPmKZ0Bh9U4KH7iv_OsHQ1p2ijjJjdHYbagZ-xdyWRT5ChcAw_gVSwfP
Decrypted: Hello World!
```

## If the key was already created
## If the key has already been created

```python
from shadow_data.cryptohash.symmetric_cipher import Symmetric
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shadow_data"
version = "0.3.0"
version = "0.4.0"
description = "A sensitive data handler python library"
readme = "README.md"
authors = ["Adler Medrado <adler@adlermedrado.com.br>"]
Expand Down