Home > Net >  For c # and VB6 general string encryption method
For c # and VB6 general string encryption method

Time:09-16


In c # and VB6 development application needs to be encrypted message, so c # and VB6 general string, decryption method, hope is you actually used, had better have the source code, I've tested DES, but both sides cannot decrypt correctly, don't know why,

CodePudding user response:

Proper encryption to decrypt, must use generic methods such as des, otherwise although xor (exclusive or the database can also be encrypted, strength too low

You should find out why we cannot decrypt correctly

CodePudding user response:

To quickly solve the problem only write a encryption to decrypt in VB6 class, encapsulated in the DLL, and then refer to the c # class, I wrote vb.net 2005 declassified documents and an encrypted string class that has been used now, c # can be used for all the items, including mobile development xaxmarin. The forms can be used inside,

CodePudding user response:

Install a virtual machine, pack the vb6 ide, write a encryption to decrypt class is ok, you can even generate the key and the ciphertext to write their own, and then after encapsulation, into the vb6 project ran down first, if you can, encapsulated in the DLL. This c # project direct reference is ok,

CodePudding user response:

If both sides interact directly, may write their own encryption decryption algorithm is the most convenient,
If can via the database once, that's good, a lot of database with these functions, it can use,
  •  Tags:  
  • C#
  • Related