Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
We don't bite newbies here... much
 
PerlMonks  

Re^5: AES Interoperability between Perl and C#

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.