mcrypt and key bytes

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2004
Marek Muszak
 
Posts: n/a
Default mcrypt and key bytes

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
Reply With Quote
  #2 (permalink)  
Old 04-28-2004
Tony Marston
 
Posts: n/a
Default Re: mcrypt and key bytes

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



Reply With Quote
  #3 (permalink)  
Old 04-29-2004
Marek Muszak
 
Posts: n/a
Default Re: mcrypt and key bytes

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
Reply With Quote
  #4 (permalink)  
Old 04-29-2004
Tony Marston
 
Posts: n/a
Default Re: mcrypt and key bytes

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



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0