Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (15 sloc) 0.449 kB
c3f7dc0 @HazAT reworked examples, keypair generator, examples now use pregenerated keys
authored
1 <?php
2
58f2e39 @HazAT Version 2.0 alpha, bidirectional communication via AES
authored
3 require_once("jCryption.php");
c3f7dc0 @HazAT reworked examples, keypair generator, examples now use pregenerated keys
authored
4
5 $keyLength = 1024;
6 $jCryption = new jCryption();
7
8 $numberOfPairs = 100;
9 $arrKeyPairs = array();
10
11 for ($i=0; $i < $numberOfPairs; $i++) {
12 $arrKeyPairs[] = $jCryption->generateKeypair($keyLength);
13 }
14
15 $file = array();
16 $file[] = '<?php';
17 $file[] = '$arrKeys = ';
18 $file[] = var_export($arrKeyPairs, true);
19 $file[] = ';';
20
21 file_put_contents($numberOfPairs . "_". $keyLength . "_keys.inc.php", implode("\n", $file));
Something went wrong with that request. Please try again.