SHA1Managed.ComputeHash returns different value when called from .net 2.0.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ravi L
    New Member
    • Oct 2010
    • 12

    SHA1Managed.ComputeHash returns different value when called from .net 2.0.

    I have an assembly developed in VB.net 1.1 to compute hash for a string password. I am using the SHA1Managed class ComputeHash method. When this method is called from a .net 1.1 application it works fine. But if my assembly is referenced by a .net 2.0 application and the same code is executed then hash value returned in diff.

    Why is this behaviour? the pwd will be different again if called from a power builder application and again a different one if called from a VC++ .net application.

    This is really strange. Can somebody shed some light on this?
Working...