Jump to content

Archived

This topic is now archived and is closed to further replies.

superpimp

Encryoting to DES

Recommended Posts

Use [a href=\"http://www.php.net/mcrypt\" target=\"_blank\"]mcrypt[/a].

Share this post


Link to post
Share on other sites
[!--quoteo(post=367473:date=Apr 22 2006, 06:00 PM:name=Tim)--][div class=\'quotetop\']QUOTE(Tim @ Apr 22 2006, 06:00 PM) [snapback]367473[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Use [a href=\"http://www.php.net/mcrypt\" target=\"_blank\"]mcrypt[/a].
[/quote]

Well, I read that manual, but I dont get a thing.

[code]
<?php
$key = "this is a secret key";
$input = "Let us meet at 9 o'clock at the secret place.";

$encrypted_data = mcrypt_ecb (MCRYPT_DES, $key, $input, MCRYPT_ENCRYPT);
?>
[/code]

What string is gonna be encrypted? $key or $input?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.