Skip to content

Instantly share code, notes, and snippets.

View cebem1nt's full-sized avatar
:shipit:

Mint cebem1nt

:shipit:
View GitHub Profile
@mostafabahri
mostafabahri / decrypt.py
Last active May 2, 2024 00:37
Fernet encryption example with password
#!/usr/bin/env python3
from cryptography.fernet import Fernet
from kdf import derive_key
passphrase = b"hunter2"
f = Fernet(derive_key(passphrase))
with open('encrypted.txt', 'rb') as file:
encrypted = file.read() # binary read
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active July 15, 2024 01:29
Set of optimizations, I use on my Artix Setup