superpimp Posted April 22, 2006 Share Posted April 22, 2006 Is it possible to encrypt strings into DES?thx! Link to comment https://forums.phpfreaks.com/topic/8118-encryoting-to-des/ Share on other sites More sharing options...
Tim Posted April 22, 2006 Share Posted April 22, 2006 Use [a href=\"http://www.php.net/mcrypt\" target=\"_blank\"]mcrypt[/a]. Link to comment https://forums.phpfreaks.com/topic/8118-encryoting-to-des/#findComment-29607 Share on other sites More sharing options...
superpimp Posted April 22, 2006 Author Share Posted April 22, 2006 [!--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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.