Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2025-06-15 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.