Skip to content

Commit ffd9979

Browse files
committed
feat: add readme
1 parent 92c0729 commit ffd9979

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ Install this via pip (or your favourite package manager):
3535

3636
`pip install kasa-crypt`
3737

38+
## Example usage
39+
40+
```python
41+
from kasa_crypt import encrypt, decrypt
42+
43+
encrypted = encrypt('{"hello":"world"}')
44+
decrypted = decrypt(encrypted[4:]) # Always a 4 byte header
45+
print (decrypted)
46+
```
47+
3848
## Contributors ✨
3949

4050
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

0 commit comments

Comments
 (0)