Unlock a file
Drop a file encrypted with timelock.sh. If the unlock time has passed, it decrypts instantly in your browser.
Drop a .enc file here or click to select
Everything happens in your browser. Your file never leaves your device.
Decrypt via OpenSSL CLI
# Your encrypted filename/path
INPUT=YOURFILE.enc
# The desired output filename
OUTPUT=decrypted.txt
# Parse the timestamp from the encrypted file/CMS
TIMESTAMP=$(openssl asn1parse -inform DER -in ${INPUT} | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}Z' | head -1)
openssl cms -decrypt -inform DER -in ${INPUT} \
-inkey <(curl -s https://timelock.sh/api/v1/keys/${TIMESTAMP}/key) -out ${OUTPUT}