Ver Mensaje Individual
  #12 (permalink)  
Antiguo 20/08/2013, 15:27
Avatar de jor_0203
jor_0203
 
Fecha de Ingreso: octubre-2011
Ubicación: mexico
Mensajes: 760
Antigüedad: 12 años, 6 meses
Puntos: 8
Respuesta: cuales son los mejores formas de encrytar y descencryptar

Cita:
Iniciado por tquezada Ver Mensaje
y me puedes mostrar lo que quieres encriptar así buscamos una solución
hola quiero encripta algo como esto
Código PHP:
Ver original
  1. //AQUI EMPIEZO A ENCRIPTAR
  2. $encriptoTodoEsteCodigo="
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>Documento sin t&iacute;tulo</title>
  8. </head>
  9. <body>
  10. <p align="center">foro del portal de autos</p>
  11. <table width="600" border="1" align="center">
  12.   <tr>
  13.     <td width="190">titulo</td>
  14.     <td width="128">fecha</td>
  15.     <td width="260">respuesta</td>
  16.   </tr>
  17. </table>
  18. <?php
  19. $host="localhost";
  20. $user="root";
  21. $password="";
  22. $db="foro";
  23. $connect=mysql_connect($host,$user,$password);
  24. mysql_select_db("foro", $connect);
  25. $consulta=mysql_query("SELECT * from foro1",$connect);
  26. $lado=mysql_num_rows($consulta);
  27. while($row=mysql_fetch_array($consulta)){
  28. $titulo = $row["titulo"];
  29. $id = $row["id"];
  30. $titulo = $row["titulo"];
  31. $fecha = $row["fecha"];
  32. $respuestas = $row["respuestas"];
  33. echo("<table width='600' border='1' align='center'>\n");
  34. echo("<tr>\n");
  35. echo("<td width='15'><a href='foroforo.php?id=$id'> ver</a></td>\n");
  36. echo("<td width='150'>$titulo</td>\n");
  37. echo("<td width='150'>".date("d-m-y", $fecha)."</td>\n");
  38. echo("<td width='150'>$respuestas</td>\n");
  39. echo("<tr>\n");
  40. echo("<table>\n");
  41. echo $id;
  42. }
  43. ?>
  44. <a href="formularioforo.php?respuestas=0">Añadir Menaje</a>
  45. </body>
  46. </html>
  47. ";
  48. //AQUI TERMINO DE ENCRIPTAR



¿la pregunta seria como encripto y como decencripto?