Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^5: AES Interoperability between Perl and C#

by ikegami (Patriarch)
on Nov 17, 2005 at 22:49 UTC ( [id://509625]=note: print w/replies, xml ) Need Help??

in reply to Re^4: AES Interoperability between Perl and C#
in thread AES Interoperability between Perl and C#

It depends on what you are encrypting. If you are encrypting many thing, you need a way of telling how long each thing is so you can seperate them once the ciphertext is decrypted.

If you're encrypting more than just a string, You'll need to add a NUL if you remove the length. You have to use one or the other (or some other alternative) in order to know where the string ends and the next thing in the plaintext start.

If the ciphertext only contains the string, you don't need either mechanism since the length of the string will be deduced by the length of the ciphertext.

  • Comment on Re^5: AES Interoperability between Perl and C#

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509625]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-07-19 12:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.