protected function defuseKey(): string
    {
        try { // Catch Defuse exceptions.
            if (!($key = DefuseKey::createNewRandomKey()->saveToAsciiSafeString())) {
                throw new Exception('Failed to generate an encryption key.');
            }
        } catch (\Throwable $Exception) {
            throw $Exception; // Re-throw.
        }
        return $key;
    }
protected function defuseKey(): string
    {
        try { // Catch Defuse exceptions.
            if (!($key = DefuseKey::createNewRandomKey()->saveToAsciiSafeString())) {
                throw new Exception('Failed to generate an encryption key.');
            }
        } catch (\Throwable $Exception) {
            throw $Exception; // Re-throw.
        }
        return $key;
    }
protected function defuseKey ( ) : string { try { // Catch Defuse exceptions. if ( ! ( $ key = DefuseKey :: createNewRandomKey ( ) -> saveToAsciiSafeString ( ) ) ) { throw new Exception ( 'Failed to generate an encryption key.' ) ; } } catch ( \ Throwable $ Exception ) { throw $ Exception ; // Re-throw. } return $ key ; }
Generates a Defuse key.

@since 170311.43193 Initial release.

@return string The Defuse key.
Generates a Defuse key .