David Christiansen
David Christiansen

Reputation: 5899

How can I encrypt a message in Perl to decrypt it in C#?

I am needing to encrypt using Perl and decrypt on .Net (C#). i.e. Perl encrypts a file and my .Net code decrypts the file (and even maybe validates integrity).

The problem is that I am not familiar with the encryption capabilities of Perl. Can anyone offer guidance on how best to approach this and what the possibilities are?

Thanks in advance!

DC

Upvotes: 1

Views: 1165

Answers (2)

Leon Timmermans
Leon Timmermans

Reputation: 30245

As Lars said, AES is probably the best choice these days. For a Perl implementation, see Crypt::Rijndael

Upvotes: 8

Lars Mæhlum
Lars Mæhlum

Reputation: 6102

Use AES encryption with a common secret key.

Perl

C#

Upvotes: 7

Related Questions