I am trying to do a room on tryhackme and it uses gpg and openssl. when I do the decryption I get the following:
[termg@nixos:~/Downloads/intro-to-cryptography/task02]$ gpg --output quote01-decrypted.txt --decrypt quote01.txt.gpg
gpg: AES256.CFB encrypted data
gpg: problem with the agent: No pinentry
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
So I installed pinentry just in case it needs it and it still does not work. I tried “nix-env -iA”, which looked like it ran but the issue was not fixed. I am guessing I am just forgetting to install something but I can’t find any installation instructions and it shouldn’t be that difficult. Also I did do the rebuild switch and reboot so it is not that.
[termg@nixos:~/Downloads/intro-to-cryptography/task02]$ gpg --output quote01-decrypted.txt --decrypt quote01.txt.gpg --passphrase s!kR3T55
bash: !kR3T55: event not found
This was an attempt to bypass the password entering thingy. Did not work.