Re: Encryption question

From: Steve Kallal (SteveKallal_at_discussions.microsoft.com)
Date: 03/18/05

  • Next message: Patrick Olurotimi Ige: "Re: Role Based Forms Auth with Active Directory"
    Date: Fri, 18 Mar 2005 14:54:03 -0800
    
    

    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
    >


  • Next message: Patrick Olurotimi Ige: "Re: Role Based Forms Auth with Active Directory"