I have a program A that pipes its input to nano this way: program_a | nano -. I want to make edits with nano and pipe it again to another program B, without having nano to write anything on the disk (The processed data is sensitive, and I want it to be only written as encrypted or processed within RAM; program B is actually an encryption program).
In order to achieve my goal, I know of solutions requiring the creation of a tmpfs on the RAM, this I would like to avoid.
Do you have any suggestions?