Replacing missing code for Character encryption.