用户密码
public virtual byte[] EncryptPassword(byte[] password)
{
Type machineKeySection = typeof(MachineKeySection);
Type[] paramTypes = new Type[] { typeof(bool), typeof(byte[]), typeof(byte[]), typeof(int), typeof(int) };
MethodInfo encryptOrDecryptData = machineKeySection.GetMethod("EncryptOrDecryptData", BindingFlags.Static | BindingFlags.NonPublic, null, paramTypes, null);
return (byte[])encryptOrDecryptData.Invoke(null, new object[] { true, password, null, 0, password.Length });
}
传入同样的参数,但是程序每次重新启动后,调用该函数,得到的结果却不同。
...全文


