machineKey 썸네일형 리스트형 C# machine key 생성하기 Visual C# .NET을 사용하여 폼 인증에서 사용할 키를 만드는 방법 http://support.microsoft.com/default.aspx?scid=312906 using System; using System.Text; using System.Security.Cryptography; namespace Crypto { public class KeyCreator { public static void Main(String[] args) { String[] commandLineArgs = System.Environment.GetCommandLineArgs(); string decryptionKey = CreateKey(System.Convert.ToInt32(commandLineArgs[1])); s.. 더보기 자동 생성된 Machinekey 읽기 Web.Config에 따로 설정을 하면 machinekey를 읽을 필요는 없겠지만서도.. 나처럼 필요한 경우가 생길지도 몰라 구글링을 통해서 얻은 정보를 공유한다. protected void Page_Load (object sender, EventArgs e) { MachineKeySection section = (MachineKeySection) ConfigurationManager.GetSection ("system.web/machineKey"); BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetProperty; Func propertyReader = name => (byte[]) section .. 더보기 이전 1 다음