*/
private function generatePrivateKeyAndHash (LocalSearchCriteria $searchInstance) {
// Generate a pseudo-random string
- $randomString = $this->generateRandomString(255);
+ $randomString = $this->getCryptoInstance()->randomString(255);
// Hash and encrypt the string so we become a node id (also documented as "hub id")
$this->setPrivateKey($this->getCryptoInstance()->encryptString($randomString));
self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Re-using found node-id: ' . $this->getNodeId() . '');
} else {
// Generate a pseudo-random string
- $randomString = $this->generateRandomString(255);
+ $randomString = $this->getCryptoInstance()->randomString(255);
// Hash and encrypt the string so we become a node id (also documented as "hub id")
$this->setNodeId($this->getCryptoInstance()->hashString($this->getCryptoInstance()->encryptString($randomString)));
./inc/classes/main/class_BaseFrameworkSystem.php:494: * @todo SearchableResult and UpdateableResult shall have a super interface to use here
./inc/classes/main/commands/web/class_WebLoginAreaCommand.php:64: * @todo Add some stuff here: Some personal data, app/game related data
./inc/classes/main/commands/web/class_WebProblemCommand.php:58: * @todo 0% done
-./inc/classes/main/commands/web/class_WebResendLinkCommand.php:67: // @TODO Rewrite this code to make use of generateRandomString() from 'hub' project
./inc/classes/main/commands/web/class_WebStatusCommand.php:58: * @todo 0% done
./inc/classes/main/console/class_ConsoleTools.php:268: * @todo This should be moved out to an external class, e.g. HttpClient
./inc/classes/main/console/class_ConsoleTools.php:269: * @todo Make IP, host name, port and script name configurable