public string Decrypt(string input) { string result = string.Empty; // XML로 변환 result = XmlUtil.GetSingleXml(CSecureUtil.Decrypt(input, "abcdefghijklmnopqrstuvwxyz123456")); return(result); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SearchData(); SetControls(); } string result = CSecureUtil.Decrypt("PGXjU6ib2mKYwtrh2i3fIQ==", "abcdefghijklmnopqrstuvwxyz123456"); }
/// <summary> /// 관리자 상세 조회 /// </summary> private void SetDetailAdmin() { StringBuilder param = new StringBuilder(); param.Append(Request["admin_id"]); ds = GetDataSet(3801, param.ToString()); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { sys_insert_member_id.Value = ds.Tables[0].Rows[0]["ADMIN_ID"].ToString(); sys_insert_member_nm.Value = ds.Tables[0].Rows[0]["ADMIN_NM"].ToString(); // Password 필드가 안채워져 고민중 sys_insert_member_pwd.Attributes.Add("value", CSecureUtil.Decrypt(ds.Tables[0].Rows[0]["ADMIN_PW"].ToString(), CConst.SECURIT_KEY)); } }