Skip to content

Instantly share code, notes, and snippets.

View TiagoRCorreia's full-sized avatar
⚙️
Focusing

Tiago Correia TiagoRCorreia

⚙️
Focusing
View GitHub Profile
@TiagoRCorreia
TiagoRCorreia / fantoccini_downloader.rs
Created February 21, 2023 23:48 — forked from cfsamson/fantoccini_downloader.rs
Fantocini file downloader - when you can't manually issua a GET request
// Cargo.toml
//
// [dependencies]
// serde_json = "1.0.61"
// notify = "4.0.15"
// anyhow = "1.0.38"
// fantoccini = "0.17.1"
// tokio = {version="1.1.1", features= ["full"]}
// log = "0.4.14"
// env_logger = "0.8.2"
@TiagoRCorreia
TiagoRCorreia / AESCipher.py
Created July 8, 2019 04:33 — forked from mguezuraga/AESCipher.py
Encrypt & Decrypt using PyCrypto AES 256From http://stackoverflow.com/a/12525165/119849
#!/usr/bin/env python
import base64
from Crypto import Random
from Crypto.Cipher import AES
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-s[-1]]