Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Exemple de cryptage des données personnelles


{filelink=15350}

<?php
$pkey = '/etc/httpd/conf/ssl.crt/server.crt';
openssl_public_encrypt($_POST['$carte_credit'], $cryptnum, $pkey);
$sql = sprintf("INSERT INTO Achat (id_user, numero_carte) values(%d, '%s')",$_SESSION['id_user'], addslashes($cryptnum));
database_query($sql) or die('Insertion impossible');
?>

No comments yet.

Leave a Comment