From a7cc25efb0b2f4347c483a7b795eae9116fcba41 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 7 Aug 2008 10:57:22 +0000 Subject: Update: Undid the password-protection support From now on, password-protection is Milestone 1.1. When that time comes, you can look back on [105] and [106] for password-protection. Refs #10 --- update/library/trunk/instadisc.php | 24 +----------------------- update/library/trunk/subscription.php | 8 -------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index e5168b1..8405110 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php @@ -10,7 +10,7 @@ $idusCentralServer = ''; // Set this to the Central Server you've signed up with $idusSubscriptionURI = ''; // Set this to your unique URI $idusSubscriptionTitle = ''; // Set this to your Subscription's title $idusSubscriptionCategory = ''; // Set this to the category your subscription uses -$idusEncryptionPassword = ''; // If creating a password-protected subscription, enter your password here +$idusActivationKey = ''; // See http://fourisland.com/projects/instadisc/wiki/Update/Library function instaDisc_sendItem($title, $author, $url, $semantics) { @@ -29,26 +29,4 @@ function instaDisc_sendItem($title, $author, $url, $semantics) $client->send($msg); } -function instaDisc_sendEncrypted($title, $author, $url, $semantics) -{ - $cipher = "rijndael-128"; - $mode = "cbc"; - $iv = "fedcba9876543210"; - - $td = mcrypt_module_open($cipher, "", $mode, $iv); - mcrypt_generic_init($td, $idusEncryptionPassword, $iv); - $title = bin2hex(mcrypt_generic($td, $title)); - $author = bin2hex(mcrypt_generic($td, $author)); - $url = bin2hex(mcrypt_generic($td, $url)); - foreach ($semantics as $name => $value) - { - $semantics[$name] = bin2hex(mcrypt_generic($td, $value)); - } - - mcrypt_generic_deinit($td); - mcrypt_module_close($td); - - instaDisc_sendItem($title, $author, $url, $semantics); -} - ?> diff --git a/update/library/trunk/subscription.php b/update/library/trunk/subscription.php index 113d3cc..7e05f5b 100644 --- a/update/library/trunk/subscription.php +++ b/update/library/trunk/subscription.php @@ -13,12 +13,4 @@ if ($idusActivationKey != '') echo('Key: ' . $idusActivationKey . "\n"); } -if ($idusEncryptionPassword != '') -{ - $verID = rand(1,65536); - - echo('Verification: ' . md5(':' . md5($idusEncryptionPassword) . ':' . $verID) . "\n"); - echo('Verification-ID: ' . $verID . "\n"); -} - ?> -- cgit 1.4.1