Jump to content

Encryoting to DES


superpimp

Recommended Posts

[!--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?
Link to comment
https://forums.phpfreaks.com/topic/8118-encryoting-to-des/#findComment-29611
Share on other sites

Archived

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

×
×
  • Create New...

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.