A
A
Anton20012022-03-17 05:28:18
Perl
Anton2001, 2022-03-17 05:28:18

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);
}

Managed to google this https://stackoverflow.com/questions/60889345/using...
Didn't help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Shipin, 2022-03-17
@alexshipin

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

N
Nikolai Savelyev, 2022-03-17
@AgentSmith

It's not Python. More like PHP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question