Reply to Re: Do you think mcrypt is too difficult to use?

Your name:

Reply:


Posted by gosha bine on 09/07/07 15:47

On 07.09.2007 17:39 howa wrote:
> php mcrypt is perhaps the most difficult to use modules, e.g.
>
>
> $key = "this is a secret key";
> $input = "Let us meet at 9 o'clock at the secret place.";
>
> $td = mcrypt_module_open('tripledes', '', 'ecb', '');
> $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
> mcrypt_generic_init($td, $key, $iv);
> $encrypted_data = mcrypt_generic($td, $input);
> mcrypt_generic_deinit($td);
> mcrypt_module_close($td);
>
>
> broken into too many steps which is error prone...
>

Nothing stops you from writing a nice, concise, well documented object
oriented frontend for it. ;))



--
gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация