Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: AES Interoperability between Perl and C#

by jpfarmer (Pilgrim)
on Nov 17, 2005 at 22:32 UTC ( [id://509623]=note: print w/replies, xml ) Need Help??


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

So by commenting that out, I'm forcing the NUL-terminated mode?

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

Replies are listed 'Best First'.
Re^5: AES Interoperability between Perl and C#
by ikegami (Patriarch) on Nov 17, 2005 at 22:49 UTC

    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2025-06-15 20:59 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.