A. Bouchez Can you help me?
A. Bouchez Can you help me?
This encryption thing is kicking my ass, mostly on the C# side.
Here are my Delphi algorithms for encoding and decoding using AES:
EncryptFunc := function(const aPassword: String; aClearText: string): string
begin
Result := TAESCBC.SimpleEncrypt(aClearText, aPassword, True, True);
end;
DecryptFunc := function(const aPassword: string; aClearText: string): string
begin
Result := TAESCBC.SimpleEncrypt(aClearText, aPassword, False, True);
end;
end;
These work marvelously on Delphi with Base64 encoding on the way in and on the way out. But C# -- not so much luck.
Can you provide any guidance at all on how to decrypt things on the C# side?
Any help at all would be appreciated very much.
This encryption thing is kicking my ass, mostly on the C# side.
Here are my Delphi algorithms for encoding and decoding using AES:
EncryptFunc := function(const aPassword: String; aClearText: string): string
begin
Result := TAESCBC.SimpleEncrypt(aClearText, aPassword, True, True);
end;
DecryptFunc := function(const aPassword: string; aClearText: string): string
begin
Result := TAESCBC.SimpleEncrypt(aClearText, aPassword, False, True);
end;
end;
These work marvelously on Delphi with Base64 encoding on the way in and on the way out. But C# -- not so much luck.
Can you provide any guidance at all on how to decrypt things on the C# side?
Any help at all would be appreciated very much.
Comments
Post a Comment