#!/bin/sh -e for C in "${HOME}/.config/chrom"*/*'/Cookies' do echo "${C}" printf '%s\n%s%s\n' '.headers on' \ 'SELECT name, value, hex(encrypted_value) FROM cookies ' \ 'WHERE host_key=".adventofcode.com";' | sqlite3 "${C}" done echo 'This is a reminder of how cookies are encrypted.' \ 'Manual export is required.' >&2 exit 1