5 ms·
tom@ubuntu:~$ gpg -c flag.png tom@ubuntu:~$ gpg -v --list-packets flag.png.gpg :symkey enc packet: version 4, cipher 3, s2k 3, hash 2 salt eae60ad4255d
by 16s 16y ago
tom@ubuntu:~$ gpg -c flag.png
tom@ubuntu:~$ gpg -v --list-packets flag.png.gpg
:symkey enc packet: version 4, cipher 3, s2k 3, hash 2
salt eae60ad4255dc4e2, count 65536 (96)
gpg: CAST5 encrypted data
OpenPGP encrypted data is easy to find too. It even tells you the algo used. The example is symmetrically encrypted, but it works the same with asymmetric keys. Even shows who it is encrypted for. Edit: formatting.
- 16s 16y agoHere's what the gpg data looks like when using someone's public key to encrypt a file... now we know who to go hit over the head with a hammer ;) tom@ubuntu:~$ gpg -v --list-packets file.gpg :pubkey enc packet: version 3, algo 16, keyid 63E6E0BBB9FEE3A5 data: [2045 bits] data: [2047 bits] gpg: public key is B9FEE3A5 gpg: using subkey B9FEE3A5 instead of primary key 7A997B0A
- limmeau 16y agoWith option --throw-keyids, you'd have to try your hammer on several heads until one fits.