Answer the question
In order to leave comments, you need to log in
Analogue of code from perl to c#?
This is AES GCM
Here is the perl code
my $aes = Crypt::AuthEnc::GCM->new ("AES", $pass, $iv_bin);
my $result = $aes->decrypt_done ($value);
if ($result eq 1)
{
print "Success";
exit (0);
}
Answer the question
In order to leave comments, you need to log in
Information on AES
How to use the Decrypt method
In any case, information on working with C# is on the official Microsoft website.
And in order to transfer code from one language to another, you need to:
1. Understand what language is in the source code (you say it's Python, but it's not. The syntax is at least not the same)
2. Understand how the code works in source code (logic and use of certain variables)
3. Read the documentation to find out if there is an implementation of the source code in the receiver code, and only then turn to Google for help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question