This is a discussion on mcrypt and key bytes within the PHP Language forums, part of the PHP Programming Forums category; Hello, I try use mcrypt but I want to use key in bytes, not in string. Encrypt text will be ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
A 16byte field is a string which is 16 bytes in length.
-- Tony Marston http://www.tonymarston.net "Marek Muszak" <marek.muszak@wp.pl> wrote in message news:c6ogrf$45h$2@korweta.task.gda.pl... > Hello, > > I try use mcrypt but I want to use key in bytes, not in string. Encrypt > text will be decrypt in Delphi with function where key is 16byte not string. > > How can I do this. > > Thanks for any help. > > best regards > Marek |
|
|||
|
Użytkownik Tony Marston napisał:
> A 16byte field is a string which is 16 bytes in length. > Any Key String is hashed by mcrypt and this hashed value (16 bytes) is internally put in key. I don't know how mcrypt do this but I have to put the same 16bytes in Delphi function. best regards Marek |
|
|||
|
A 16 byte string is a 16 byte string in any language, regardless of what it
contains. -- Tony Marston http://www.tonymarston.net "Marek Muszak" <marek.muszak@wp.pl> wrote in message news:c6q9jb$d7c$1@korweta.task.gda.pl... > Użytkownik Tony Marston napisał: > > A 16byte field is a string which is 16 bytes in length. > > > > Any Key String is hashed by mcrypt and this hashed value (16 bytes) is > internally put in key. I don't know how mcrypt do this but I have to put > the same 16bytes in Delphi function. > > best regards > Marek |