Encrypt a string in C # and decrypt it in Delphi

I am writing a web application in ASP.Net that creates a license key for a Windows application written in Delphi. For simplicity, I am going to use the email address and date.

I want to encrypt it in C # and send this information to a person, and then when the Windows application starts up, the person enters the encrypted string.

Each time a Windows application starts, it checks this license, decrypts it and compares it with the current date.

How can I do this to provide C # encryption in Delphi?

+5
source share
4 answers

" , , "

: " , ", , : ? ? ? , , , . , ( , AES, 3DES, XDES ), , . , - , , ( , , ..). , . , .

S-MIME - . PGP . # Delphi , . . .

+8
+8

RSA DSA, , . # , . Delphi . . Delphi.

, Delphi, :

  • # .
  • Delphi .
  • Delphi , , / , .

โ€‹โ€‹ , /, DSA, LockBox #.

, , , # , LockBox/Windows CryptoAPI . , , , , Delphi . crypto.

: , AES/3DES/ .. , "" . , - EXE, " " - , , "" . , . EXE - .

+2

Use the same encryption / decryption algorithm in both delphi and C #.

You can find the code for the encryption algorithm for C # and then convert the code to the decryption algorithm in Delphi. Probably, if you choose the popular encryption, you can find encryption and decryption algorithms in different languages.

-1
source

All Articles