From b1e9aa3ad87aefe616e26fac58e43f5123360b02 Mon Sep 17 00:00:00 2001 From: LINICKX Date: Thu, 2 Jun 2011 17:00:35 +0100 Subject: [PATCH] Testing provider salt generation. --- php/setup.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/php/setup.php b/php/setup.php index e78a261..e68a4eb 100644 --- a/php/setup.php +++ b/php/setup.php @@ -2,14 +2,19 @@ /** - Set up Instructions + Set up Script. **/ - ?> - -Set Up - - Set up Instructions - - \ No newline at end of file + $n = mt_rand(); + $randomstring = base_convert($n, 10, 36); + $ProviderSalt = hash('sha256', $randomstring); + + echo $ProviderSalt; + + #if (!$handle = fopen("./config.php", 'a')) { + # echo "Cannot write file (config.php)"; + #} + + + ?> \ No newline at end of file