小编Mer*_* Jo的帖子

如何从chrome控制台窗口复制对象?

我试图将对象复制为文本,但它只显示[对象对象].在此之前我曾尝试过复制表示它是成功但不是现在.那是铬问题吗?

我尝试了什么? 只需右键单击对象并从chrome控制台窗口存储为全局变量,然后接下来只使用copy(temp6)命令并尝试粘贴到notepad ++中.


在此输入图像描述

javascript google-chrome google-chrome-console

38
推荐指数
4
解决办法
2万
查看次数

如何在MVC C#中解密FormsAuthenticationTicket?

我正在加密密码,并使用FormsAuthenticationTicket将其存储到会话值,当我检索到密码时,我无法解密密码。

如下加密

    string pw="xyz";
    FormsAuthenticationTicket ticketpw = new FormsAuthenticationTicket(pw, true, 1000);
    string securepw = FormsAuthentication.Encrypt(ticketpw);

    Session["password"] = securepw;
Run Code Online (Sandbox Code Playgroud)

我试图像下面尝试解密
1

            FormsAuthenticationTicket ticketuname = new FormsAuthenticationTicket(pw, true, 1000);
            string secureuname = FormsAuthentication.Decrypt(pw);

            Session["password"] = securepw;
Run Code Online (Sandbox Code Playgroud)

试试2

            string securepw=FormsAuthentication.Decrypt(pw);               
            Session["password"] = securepw;
Run Code Online (Sandbox Code Playgroud)

错误-无法将FormAuthenticationTicket转换为字符串

c# asp.net-mvc-4 form-authentication

1
推荐指数
1
解决办法
2836
查看次数