¡@

Home 

c# Programming Glossary: lul_datalen

How to AES-128 encrypt a string using a password in Delphi and decrypt in C#?

http://stackoverflow.com/questions/9188045/how-to-aes-128-encrypt-a-string-using-a-password-in-delphi-and-decrypt-in-c

string string var hCProv HCRYPTPROV hKey HCRYPTKEY lul_datalen Integer lul_buflen Integer Buffer TBytes begin Assert Password.. hCProv Password try allocate buffer space lul_datalen Length Value SizeOf Char Buffer TEncoding.Unicode.GetBytes Value.. to buffer Win32Check CryptEncrypt hKey 0 True 0 @Buffer 0 lul_datalen lul_buflen SetLength Buffer lul_datalen base 64 result Result..