Encrypting from and to clipboard

I remember being able to copy a file to the clipboard and encrypting it, with the result being on the clipboard. I don’t remember whether this was a capability of PGP, Kleopatra, or some other program. Can someone please help me.

It’s GPA (Gnu Privacy Assistant) that comes with Gpg4win. However I’m not sure it’s installed by default, you may have to check a box when installing.
When you run GPA it’s in “Windows” menu, “Clipboard” option.

Or check out https://wald.intevation.org/forum/message.php?msg_id=2695

You can also do this with Kleopatra by right clicking the tray icon.