make changes for different password encodings