recover encrypt plaintext ballot functionality