Fix encrypted key