Re: Encryption question

From: Alek Davis (alek_xDOTx_davis_xATx_intel_xDOTx_com)
Date: 03/15/05

  • Next message: charlestek: "Re: Size of Entropy with Dpapi Encrypted Connection String"
    Date: Mon, 14 Mar 2005 17:33:38 -0800
    
    

    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
    >


  • Next message: charlestek: "Re: Size of Entropy with Dpapi Encrypted Connection String"

    Relevant Pages

    • Re: Another history question was Re: Tunny and SIGABA
      ... Concrete Security Treatment of Symmetric Encryption: ... string or the right string. ... and some total plaintext length, and some time t to do all of this. ...
      (sci.crypt)
    • How good an encryption algorithm is this?
      ... Must be capable of encrypting strings to a byte array, ... back again to the same string ... Encryption algorithm must also return the exact number of bytes of the ...
      (microsoft.public.dotnet.languages.csharp)
    • How good an encryption algorithm is this?
      ... Must be capable of encrypting strings to a byte array, ... back again to the same string ... Encryption algorithm must also return the exact number of bytes of the ...
      (microsoft.public.vc.language)
    • Re: Byte array to string and back - newbie question
      ... // Create a symmetric algorithm. ... This is done to make encryption more ... // Encrypt a string into a string using a password ... // Decrypt a byte array into a byte array using a key and an IV ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Using Python To Create An Encrypted Container
      ... an encrypted archive utility designed for secure archiving ... A match string allows you to only extract files matching a given ... Encrypt the string s using passwd and encryption cipher enc ...
      (comp.lang.python)