FormsAuthenticationTicketをクッキーに保存するときに、FormsAuthentication.Encryptで暗号化しておく。
FormsAuthentication.Encrypt(FormsAuthenticationTicket) メソッド (System.Web.Security) | Microsoft Docs
login.aspxで、
暗号化文字列を出してみる。
![ログインすると](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20220707/20220707100005.png)
ログインすると、
![長い暗号化文字列になっている](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20220707/20220707100121.png)
長い暗号化文字列になっている。
FormsAuthenticationTicketをクッキーに保存するときに、FormsAuthentication.Encryptで暗号化しておく。
FormsAuthentication.Encrypt(FormsAuthenticationTicket) メソッド (System.Web.Security) | Microsoft Docs
login.aspxで、
暗号化文字列を出してみる。
ログインすると、
長い暗号化文字列になっている。