Re:Show HN: Continue? Y/N: A 60-second game about AI agent p...
by freedomben on Thursday May 28, 2026 @03:17PM
(#48314025)
I put mine in various aes encrypted file (like `~/.secrets.aes`) and then source it explicitly when needed with:
I have a handful of aliases/functions to make it more smooth, but that's the core.
[ Parent
| on HN ]
Re:Show HN: Continue? Y/N: A 60-second game about AI agent p...
by maccard on Thursday May 28, 2026 @03:50PM
(#48314428)
Where are those aliases stored?
Re:Show HN: Continue? Y/N: A 60-second game about AI agent p...
by AnyTimeTraveler on Thursday May 28, 2026 @04:47PM
(#48315237)
In that AES encrypted file.
It's a shellscript that they encrypted. They decrypt it and feed the decrypted output immediately into the shell, to be sourced.
That encrypted secrets file could contain any shellscript, so the aliases are stored in there, together with the API-Keys and passwords.
Re:Show HN: Continue? Y/N: A 60-second game about AI agent p...
by freedomben on Thursday May 28, 2026 @08:09PM
(#48317296)
The AES encrypted file has some, plus a bunch of exported env vars. I do keep one function in my ~/.bashrc to make it simpler to invoke so I can do `source-secret ~/.secrets.aes`:
source-secret()
{
if [ -z "$1" ]; then
echo "Need filename to source"
elif ! [ -f "$1" ]; then
echo "File '$1' does not exist"
elif ! which aescrypt >/dev/null 2>&1; then
echo "Could not find required dependency 'aescrypt'"
else
. <(aescrypt -d -o - "$1")
fi
}