Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.15 KB

File metadata and controls

46 lines (36 loc) · 1.15 KB
title Start using cryptexx right now!

How to use cryptexx

```bash pip install cryptexx ``` This is our brand new function called cryptlock it allows you to set a custom encryption key and without that key nobody will be able to decrypt the encypted text
<Warning>
  The text and the key should only be a string.
</Warning>
```python
from cryptexx import cryptlock

# Encryption
encrypted_text = cryptlock.encrypt("Hello, World!", "MyKey")

# Decryption
decrypted_text = cryptlock.decrypt(encrypted_text, "MyKey")
print(decrypted_text)

```
```python from cryptexx import cryptexx
# Encryption
encrypted_text = cryptexx.encrypt("Hello, World!")

# Decryption
decrypted_text = cryptexx.decrypt(encrypted_text)
print(decrypted_text)

```