7d3d4ca3af54387c3f405ec6b6e082d99738b4b8
[ga4php.git] / unittests / createurl.php
1 <?php
2
3 require_once("../lib/lib.php");
4
5 $ga = new GoogleAuthenticator("/dev/null");
6
7 echo "creating 10000 keys\n";
8 $oldkey = "";
9 $key = $ga->createBase32Key();
10
11 $url = $ga->createURL("someuser", $key);
12
13 system("qrencode -s 6 -o /tmp/file.unittest $url");
14 system("eog /tmp/file.unittest");
15 unlink("/tmp/file.unittest");
16 ?>