You mean something like this? https://jakelazaroff.com/words/homomorphically-encrypted-crd...

It is slow and inefficient, but can be done.