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

  1. #1

    Default Encryption question

    I need to find a form of encryption that always encrypts a given plain text
    string to the exact same encrypted string every time. I want to use a form of
    output caching in my ASP.NET application that will use a cached version of a
    web page if the query string parameters are exact each time. If the encrypted
    query string varies each time, even with the same plain text string, the
    cache likely will not work.

    Every encryption algorithm I have tried so far using the System.Security
    namespace, produces a different encrypted string each time I try it.

    Thanks in advance!

    Steve Kallal

    Steve Kallal Guest

  2. Similar Questions and Discussions

    1. About Encryption ...
      Hi, I'm testing a Rijndael Symetric Algorithm Implementation to encrypt data. With that intention, i made use of code that i saw in...
    2. 3des encryption question
      hi, if someone knows the original and encrypted form of some information that i have encrypted with my private key using 3des in .net, does this...
    3. Need help with encryption
      Hi I i'm working on a web site that will save customer info some of this info needs to be encrypted in the db. I will need to encrypt when...
    4. IDS 9.40.UC2, Encryption
      I try to configure encryption with IDS 9.40.UC2 on an AIX platform and I'm a little bit confused about the different error messages I receive. ...
    5. encryption Help
      Is there any way, besides making one big movie and saving it as a projector to keep your movies from someone else being able to open them in Director...
  3. #2

    Default Re: Encryption question

    Steve,

    Every encryption algorithm when used with the same key (and initialization
    vector, IV, if applicable) will produce the same ciphertext value from the
    same plaintext value. Are you saying that you cannot find a sample code that
    would allow you to encrypt the same value (with the same key and IV) and
    generate the consistent result? If this is the case, you may not be doing it
    correctly. Please forget about your application for a moment and just try to
    solve the problem with a simple text string. There are many examples online
    explaining ho to do this. If this is not the case, and you cannot achieve
    consistent results for your particular application (not really sure what you
    are doing regarding caching of the ASP.NET pages), then you need to focus on
    the inputs. Make sure that plaintext converted to byte arrays, and key
    characteristics (key bytes, or password, IV, salt, password iterations,
    hashing algorithm) are the same.

    Alek

    "Steve Kallal" <SteveKallal@discussions.microsoft.com> wrote in message
    news:26F21109-0923-4AA6-AADD-A775FDDB999B@microsoft.com...
    > I need to find a form of encryption that always encrypts a given plain
    text
    > string to the exact same encrypted string every time. I want to use a form
    of
    > output caching in my ASP.NET application that will use a cached version of
    a
    > web page if the query string parameters are exact each time. If the
    encrypted
    > query string varies each time, even with the same plain text string, the
    > cache likely will not work.
    >
    > Every encryption algorithm I have tried so far using the System.Security
    > namespace, produces a different encrypted string each time I try it.
    >
    > Thanks in advance!
    >
    > Steve Kallal
    >

    Alek Davis Guest

  4. #3

    Default Re: Encryption question

    Thanks Alek,

    Can you point me to an online sample where the ciphertext output is always
    produced the same with the same inputs.

    Thanks,

    Steve

    "Alek Davis" wrote:
    > Steve,
    >
    > Every encryption algorithm when used with the same key (and initialization
    > vector, IV, if applicable) will produce the same ciphertext value from the
    > same plaintext value. Are you saying that you cannot find a sample code that
    > would allow you to encrypt the same value (with the same key and IV) and
    > generate the consistent result? If this is the case, you may not be doing it
    > correctly. Please forget about your application for a moment and just try to
    > solve the problem with a simple text string. There are many examples online
    > explaining ho to do this. If this is not the case, and you cannot achieve
    > consistent results for your particular application (not really sure what you
    > are doing regarding caching of the ASP.NET pages), then you need to focus on
    > the inputs. Make sure that plaintext converted to byte arrays, and key
    > characteristics (key bytes, or password, IV, salt, password iterations,
    > hashing algorithm) are the same.
    >
    > Alek
    >
    Steve Kallal Guest

  5. #4

    Default Re: Encryption question

    Try [url]http://www.obviex.com/samples/encryption.aspx[/url] or
    [url]http://dotnet.org.za/deon/articles/2998.aspx[/url] (if you do a Google search, you
    will find many more; I was too lazy to go through more than the first dozen
    of the returned result).

    Alek

    "Steve Kallal" <SteveKallal@discussions.microsoft.com> wrote in message
    news:49E905FB-3798-4AD8-BD86-0AFDDD11F5E4@microsoft.com...
    > Thanks Alek,
    >
    > Can you point me to an online sample where the ciphertext output is always
    > produced the same with the same inputs.
    >
    > Thanks,
    >
    > Steve
    >
    > "Alek Davis" wrote:
    >
    > > Steve,
    > >
    > > Every encryption algorithm when used with the same key (and
    initialization
    > > vector, IV, if applicable) will produce the same ciphertext value from
    the
    > > same plaintext value. Are you saying that you cannot find a sample code
    that
    > > would allow you to encrypt the same value (with the same key and IV) and
    > > generate the consistent result? If this is the case, you may not be
    doing it
    > > correctly. Please forget about your application for a moment and just
    try to
    > > solve the problem with a simple text string. There are many examples
    online
    > > explaining ho to do this. If this is not the case, and you cannot
    achieve
    > > consistent results for your particular application (not really sure what
    you
    > > are doing regarding caching of the ASP.NET pages), then you need to
    focus on
    > > the inputs. Make sure that plaintext converted to byte arrays, and key
    > > characteristics (key bytes, or password, IV, salt, password iterations,
    > > hashing algorithm) are the same.
    > >
    > > Alek
    > >
    >

    Alek Davis 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