cringe software foundation
Find a file
2026-04-22 19:31:27 +03:00
.gitignore feat: ehm 2026-03-22 00:10:03 +03:00
ansi.go feat: ehm 2026-03-22 00:10:03 +03:00
go.mod feat: ehm 2026-03-22 00:10:03 +03:00
lICENSE chore: LICENSE 2026-04-22 19:28:15 +03:00
main.go feat: vanityfier 2026-03-22 00:29:34 +03:00
packet.go feat: ehm 2026-03-22 00:10:03 +03:00
README.md chore: make pic smaller 2026-04-09 17:49:18 +03:00
vanity.go feat: vanityfier 2026-03-22 00:29:34 +03:00

gpgcat

embed custom messages and art into PGP public keys

when someone runs cat yourkey.asc | gpg, theyll see your message before the key info

:3

inst

go install code.wejust.rest/lain/gpgcat@latest

or... build from source:

go build -o gpgcat .

usage!!

# vanity base64 line + message
gpgcat -v "++lain++meow++" -m "mreow" < key.asc > fancy.asc

# color stripes + message
gpgcat -c "161,161,93,21,21" -m "bip boop" < key.asc

# just text
gpgcat -m "meow :3" < key.asc > fancy.asc

# from gpg directly
gpg --export -a YOUR_KEY_ID | gpgcat -v "uwu" -m "hi" > fancy.asc

vanity

-v embeds readable text in the first base64 line:

-----BEGIN PGP PUBLIC KEY BLOCK-----

yzj+Ju/0+/0+/0+/0+/0+/0+/++lain++meow+++/0+/0+/0+/0+/0+/NNNNNBtb
                           ^^^^^^^^^^^^^^

only A-Za-z0-9+/ allowed (base64 charset)

colors

256 color codes (0-255), comma-sep. each = one horizontal stripe

ref: https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

how it works???

openpgp format allows "literal data packets" (tag 11) anywhere in the packet stream. when gpg reads one from stdin, it outputs the raw bytes to stdout. we prepend such a packet containing ansi escape codes + your message. the key itself remains valid and importable

IMPORTANT!!!

use cat key.asc | gpg (pipe), not gpg key.asc (file argument). only the pipe method outputs literal data to terminal