void AddSaltToHash(byte[] salt, ref byte[] hash) { if (this.saltEnabled) { hash = CryptographyUtility.CombineBytes(salt, hash); } }
void AddSaltToPlainText(ref byte[] salt, ref byte[] plaintext) { if (this.saltEnabled) { if (salt == null) { salt = CryptographyUtility.GetRandomBytes(0x10); } plaintext = CryptographyUtility.CombineBytes(salt, plaintext); } }