Encryption of Authentication Ticket

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

  1. #1

    Default Encryption of Authentication Ticket

    i have a question regarding the encryption of an Authentication Ticket under FormsAuthentication. Can anyone tell me what type of encryption is used and what key(s) is it based on? I simply want to know that the encryption is specific to the machine and possible the ASP.NET application and cannot be decrypted by someone who has access to the .NET framework and can put the ticket through the FormsAuthentication.Deccrypt method

    Thank

    Robert Millman
    Robert Millman Guest

  2. Similar Questions and Discussions

    1. Form Authentication Ticket
      I've read some books and online articles on how to implement form authentication. Some taught me just to do...
    2. Change authentication ticket value at run time?
      Hi, what am I doing wrong ? there is 2 levels of user accessing the application:'Admin' and 'NoneAdmin'. I'm using role based authentication. ...
    3. Why authentication Ticket expires
      Can anybody tells if I'm doing something wrong in this code and why the user authentication ticket always expires 30 minutes later, even though I...
    4. Authentication ticket, cookieless, forms authentication?
      Hi. I want to use Forms Authentication, cookieless. The issue is setting the Authentication Ticket without using cookies (!) That is, the...
    5. Custom Authentication Ticket
      James, I found your C code and tutorial about this. I attempted to convert it to VB as follows but could you possibly tell me why the code segment...
  3. #2

    Default Re: Encryption of Authentication Ticket

    Forms Auth encrypts the ticket with 3DES by default and use a random
    generated key stored in the LSA. If you wish, you can specify a base 64
    encoded key in the <machineKey> element of the machine.config file or your
    web.config file. (see decryptionKey attribute). In fact, the encryption key
    is hashed with some extra timestamped entropy values in order to get
    increased security against replay attacks and the like. You can find more
    info about <machineKey> in
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfmachinekeysection.asp[/url].
    You also have good tips in
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/THCMCh19.asp[/url]


    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://www.lagash.com[/url]



    "Robert Millman" <RMillman@AllscriptsOL.com> wrote in message
    news:A9E7E207-2174-491A-8293-E3474475C0F8@microsoft.com...
    > i have a question regarding the encryption of an Authentication Ticket
    under FormsAuthentication. Can anyone tell me what type of encryption is
    used and what key(s) is it based on? I simply want to know that the
    encryption is specific to the machine and possible the ASP.NET application
    and cannot be decrypted by someone who has access to the .NET framework and
    can put the ticket through the FormsAuthentication.Deccrypt method.
    >
    > Thanks
    >
    > Robert Millman

    Hernan de Lahitte Guest

  4. #3

    Default Re: Encryption of Authentication Ticket

    Thanks for answering my question. As I understand it, the ticket cannot be decrypted without the key, which is local/specific to the machine/config/app

    Thank


    Robert Millman Guest

  5. #4

    Default Re: Encryption of Authentication Ticket

    You are right. The exception is if you specify a decryptionKey in the
    machineKey element of the config file, usually in web farm scenarios.

    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://www.lagash.com[/url]



    "Robert Millman" <RMillman@AllscriptsOL.com> wrote in message
    news:F552145C-9C52-4EDD-9B2B-D903AA2191C5@microsoft.com...
    > Thanks for answering my question. As I understand it, the ticket cannot
    be decrypted without the key, which is local/specific to the
    machine/config/app.
    >
    > Thanks
    >
    >

    Hernan de Lahitte 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