public function generateKey($name)
    {
        if (strlen($name) === 0) {
            throw new SecurityException('Required name argument was empty', 1334215474);
        }
        $password = UtilityAlgorithms::generateRandomString($this->passwordGenerationLength);
        $this->persistKey($name, $password);
        return $password;
    }
public function generateKey($name)
    {
        if (strlen($name) === 0) {
            throw new SecurityException('Required name argument was empty', 1334215474);
        }
        $password = UtilityAlgorithms::generateRandomString($this->passwordGenerationLength);
        $this->persistKey($name, $password);
        return $password;
    }
public function generateKey ( $ name ) { if ( strlen ( $ name ) === 0 ) { throw new SecurityException ( 'Required name argument was empty' , 1334215474 ) ; } $ password = UtilityAlgorithms :: generateRandomString ( $ this -> passwordGenerationLength ) ; $ this -> persistKey ( $ name , $ password ) ; return $ password ; }
Generates a new key & saves it encrypted with a hashing strategy

@param string $name
@return string
@throws SecurityException
Generates a new key & saves it encrypted with a hashing strategy