diff --git a/php/License/license_generator.php b/php/License/license_generator.php
index 5015858..5928ee0 100644
--- a/php/License/license_generator.php
+++ b/php/License/license_generator.php
@@ -7,7 +7,7 @@ class License_Generator
#-#############################################
# desc: constructor
- function License_Generator(){
+ function __construct() {
## NOTE ###############################################
@@ -32,7 +32,7 @@ class License_Generator
#################################################
$binary_signature ="";
- openssl_sign($stringData, $binary_signature, $this->private_key, OPENSSL_ALGO_DSS1);
+ openssl_sign($stringData, $binary_signature, $this->private_key, OPENSSL_ALGO_SHA1);
// base 32 encode the signature
$encoded = base32_encode($binary_signature);
// replace O with 8 and I with 9
diff --git a/php/licensekey.php b/php/licensekey.php
index d6d612f..58f8434 100644
--- a/php/licensekey.php
+++ b/php/licensekey.php
@@ -50,7 +50,7 @@ class License_Generator
$stringData = $product_code.",".$name.",".$email;
echo "Data: ".$stringData."
";
$binary_signature ="";
- openssl_sign($stringData, $binary_signature, $this->private_key, OPENSSL_ALGO_DSS1);
+ openssl_sign($stringData, $binary_signature, $this->private_key, OPENSSL_ALGO_SHA1);
echo "Binary Sig: ".$binary_signature."
";
// base 32 encode the stuff
@@ -104,7 +104,7 @@ class License_Generator
echo "Binary Sig: ".$decodedHash. "
";
//digest the original Data
$stringData = $product_code.",".$name.",".$email;
- $ok = openssl_verify($stringData, $decodedHash, $this->public_key, OPENSSL_ALGO_DSS1);
+ $ok = openssl_verify($stringData, $decodedHash, $this->public_key, OPENSSL_ALGO_SHA1);
if ($ok == 1) {
echo "GOOD";
} elseif ($ok == 0) {
@@ -115,4 +115,4 @@ class License_Generator
}
} # Class License
-?>
\ No newline at end of file
+?>