lots of work on the authserver... tho mostly proof of concept
[ga4php.git] / unittests / createurl.php
1 <?php
2
3 require_once("../lib/ga4php.php");
4
5 $ga = new GoogleAuthenticator("/dev/null");
6
7 echo "creating 10000 keys\n";
8 $oldkey = "";
9 $key = $ga->createBase32Key();
10
11 $hex = $ga->helperb322hex($key);
12
13 $url = $ga->createURL("someuser", $key);
14
15 system("qrencode -s 6 -o /tmp/file.unittest $url");
16 system("eog /tmp/file.unittest");
17 echo "key in hex: $hex\n";
18 //unlink("/tmp/file.unittest");
19 ?>