ASP to encrypt string before MS SQL insert

  • Hi there,

    I'm looking for a good encryption technique to use to store some data - my web pages are asp on iis 6 on a win 2003 server that has MSSQL 2000 as a db.  I want to use asp to encrypt the strings before inserting them into the table, then be able to pull them out again with a decrypt.  This decrypt request may also cross subdomains, eg from abc.me.com to xyz.me.com.

    Can anyone suggest a technique I can use please?

    Many thanks,

  • Hi friend,

    you can do the encryption in the ASP page itself.

    The best encryption algorithms are sha,AES, MD5(message digest only).

    In these algorithm you can only encrypt. If you need to decrypt, I don't have that peice of code. because these encryption algorithm will throw a 32(MD5) or 40 (SHA) digits encrypted characters which is a digest of your orginal text.

    mostly encyption will be done for passwords only in any site. if that is the case then we don't need any decryption.

    If you need both encryption and decription then use base64encode which is a  normal encryption algorithm. if you jumble with the constants then it is little tough to break

    Visit the below link for those algorithms in asp/vbscript

    http://www.frez.co.uk/freecode.htm#sha256

    After the encryption code use your imagination. encrypt three diff combinations

    eg : sha or md5(a rand number & md5(another rand number) & sha(your text) & md5("predefined key"))

    in this eg i am having bth encyption and using random numbers and concatenating you can have rand variable for choosing sequence also. like this use your imagination for strong encoding

    Eg site : http://www.bepenfriends.com there a very random method of encryption happening with three to four algorithms

    Thank you

    Albert

    Want dating friend?

    http://www.bepenfriends.com

  • Many thanks for your help Albert!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply