Question on the FormsAuthentication.Encrypt method

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Question on the FormsAuthentication.Encrypt method

    I want to encrypt the values of my cookies. I found out that I could
    create a FormsAuthenticationTicket, and use the
    FormsAuthentication.Encrypt method to encrypt the cookie.

    However, I do not want to use FormsAuthentication feature. I already
    have custom code to redirect the use back to the login page if they
    haven't signed on.

    My question is can I use the FormsAuthentication.Encrypt method to
    encrypt my cookies without using the FormsAuthentication feature of
    ASP.NET?

    Tommy,
    Tommy Guest

  2. Similar Questions and Discussions

    1. FormsAuthentication Encrypt/Decrypt Problem/Issue
      I'm using the C# sample from MSDN on how to authenticate against an active directory. What I notice is that I get the list of groups placed in the...
    2. FormsAuthentication.Encrypt - algorithm
      Hajo, I have a few questions about above method. 1. AFAIK it is symatric encryption, what kind of algorithm(name) is used in this method? 2....
    3. Forms Auth and FormsAuthentication.SignOut()Question
      I'm using Form Auth. I 'm using the FormsAuthentication.SignOut() to sign out But when the user logins in and later logs out using...
    4. FormsAuthentication Class Question
      First, here's a quick description of what I have so far. I have a website that I am building that contains both asp and asp.net pages. I have...
    5. FormsAuthentication.Encrypt problem
      Hi, I have a strange problem. I get NULL reference out of Encrypt function. FormsAuthenticationTicket ticket = new...
  3. #2

    Default Re: Question on the FormsAuthentication.Encrypt method

    Tommy,

    I think that you could but why not encrypt the cookies with a normal
    encryption object? Then you won't have to tie in to all the forms
    authentication objects which you may have to code around. Just encrypt the
    data you're putting into the cookies and you're all set.

    There are many good articles about how to use the encyrption object in .Net,
    but if you want a quick and easy to use set of encryption methods I've
    developed some. I'm offering all the object's I've built and their source
    code on my web site, [url]www.aboutfortunate.com[/url], for free.

    Just go to the code library and click the "Encryption" button in the left
    menu.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Tommy" <Tommy@WebSoftwares.net> wrote in message
    news:aa725729.0308070839.6a083315@posting.google.c om...
    > I want to encrypt the values of my cookies. I found out that I could
    > create a FormsAuthenticationTicket, and use the
    > FormsAuthentication.Encrypt method to encrypt the cookie.
    >
    > However, I do not want to use FormsAuthentication feature. I already
    > have custom code to redirect the use back to the login page if they
    > haven't signed on.
    >
    > My question is can I use the FormsAuthentication.Encrypt method to
    > encrypt my cookies without using the FormsAuthentication feature of
    > ASP.NET?
    >
    > Tommy,

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139