Fix uploadKey encrypt method