By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,049 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,049 IT Pros & Developers. It's quick & easy.

mcrypt and key bytes

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
A 16byte field is a string which is 16 bytes in length.

--
Tony Marston

http://www.tonymarston.net
"Marek Muszak" <ma**********@wp.pl> wrote in message
news:c6**********@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

Jul 17 '05 #2

P: n/a
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
Jul 17 '05 #3

P: n/a
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" <ma**********@wp.pl> wrote in message
news:c6**********@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

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.