Question on the FormsAuthentication.Encrypt method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tommy

    #1

    Question on the FormsAuthentication.Encrypt method

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

    However, I do not want to use FormsAuthentica tion 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 FormsAuthentica tion.Encrypt method to
    encrypt my cookies without using the FormsAuthentica tion feature of
    ASP.NET?

    Tommy,
  • S. Justin Gengo

    #2
    Re: Question on the FormsAuthentica tion.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, www.aboutfortunate.com, 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:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "Tommy" <Tommy@WebSoftw ares.net> wrote in message
    news:aa725729.0 308070839.6a083 315@posting.goo gle.com...[color=blue]
    > I want to encrypt the values of my cookies. I found out that I could
    > create a FormsAuthentica tionTicket, and use the
    > FormsAuthentica tion.Encrypt method to encrypt the cookie.
    >
    > However, I do not want to use FormsAuthentica tion 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 FormsAuthentica tion.Encrypt method to
    > encrypt my cookies without using the FormsAuthentica tion feature of
    > ASP.NET?
    >
    > Tommy,[/color]


    Comment

    Working...