Very important, very urgent!!! ASPEncrypt related

Last post 07-05-2009 3:24 AM by TATWORTH. 2 replies.

Sort Posts:

  • Very important, very urgent!!! ASPEncrypt related

    06-26-2004, 9:44 PM
    • Member
      20 point Member
    • Rfrancisco
    • Member since 06-25-2002, 7:29 AM
    • Posts 4
    My company has a product that was developed using AspEncrypt, now in the new version we are no longer using AspEncrypt but we need to mantain compatibility. in the previous version of the application we had something like this :


    Function Encrypt() as string
    Dim CM As ASPENCRYPTLib.CryptoManager
    Dim AspEncContext As ASPENCRYPTLib.ICryptoContext
    Dim Key As ASPENCRYPTLib.ICryptoKey
    Dim Blob As ASPENCRYPTLib.ICryptoBlob
    Dim Hash As ASPENCRYPTLib.ICryptoHash

    CM = New ASPENCRYPTLib.CryptoManager

    AspEncContext = CM.OpenContext("", True)

    Key = AspEncContext.GenerateKeyFromPassword("Password", , , 40)
    Blob = Key.EncryptText("texttoencode")

    Return CStr(Blob.Hex)
    End Function

    The function above produces the folowing value : "50A87060FEF3A12E0E76EADCA83FDB33"

    What i neen is some way to get the same value using .Net CryptoProviders. This is very important because we have hundreds of applications and we need to maintain compatibility

    I would apreciate any help in this matter.

    Thanks!!!!
  • Re: Very important, very urgent!!! ASPEncrypt related

    07-02-2009, 4:51 AM
    • Member
      2 point Member
    • JackBhanded
    • Member since 09-05-2007, 3:34 PM
    • Posts 1

    I also want to replace aspencrypt with managed .net code for encryption/decryption. Any help in the matter is highly appreciated. I know someone outthere did this.

    Please help us get rid of this perfomance killing component. It started throwing errors since we are running it on framework 2.0.

    Thanks in advance.

    Jack.

  • Re: Very important, very urgent!!! ASPEncrypt related

    07-05-2009, 3:24 AM
    • All-Star
      62,688 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,232
    • TrustedFriends-MVPs

    Can you write a batch program to call AspEncrypt to decrypt and then encrypt using a Dot Net algorithm?

    (You will need to check the length required to store the newly encrypted string)

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (3 items)