With homomorphic encryption you can do this now in a secure way - unbreakable client side obfuscation.