Both KGpg and Kleopatra were installed when I set up this computer.

They appear to do essentially the same thing. Both show up as file encryption options in Dolphin. I haven't configured either one or imported the old keys yet.

What is the difference?

Are they both needed?