I want to store some data in a variable (and I know variables are stored in memory). Does that data in memory get encrypted? Also, is it possible for software to be able to read
Okay, so I want to store some data in a variable (which, I know, variables are stored in memory) - does that data in memory get encrypted?
NO
Also, is it possible for software to be able to read the variable names stored in memory and be able to actually extract the data from it?
Names or values?
For values:
You mean a different program, not yours, to access it and read it? Yes, it's possible, depending on OS it may be tricky or trickier, but doable.
For names: Depends on how you build your software - if you leave debug info in it - it's very easy to do that.