Skip to content
This repository
tree: 2781ec8be1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (15 sloc) 0.449 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php

require_once("jCryption.php");

$keyLength = 1024;
$jCryption = new jCryption();

$numberOfPairs = 100;
$arrKeyPairs = array();

for ($i=0; $i < $numberOfPairs; $i++) {
$arrKeyPairs[] = $jCryption->generateKeypair($keyLength);
}

$file = array();
$file[] = '<?php';
$file[] = '$arrKeys = ';
$file[] = var_export($arrKeyPairs, true);
$file[] = ';';

file_put_contents($numberOfPairs . "_". $keyLength . "_keys.inc.php", implode("\n", $file));
Something went wrong with that request. Please try again.