. */ namespace SP\Domain\Crypt\Ports; use Defuse\Crypto\Key; use SP\Domain\Common\Services\ServiceException; use SP\Domain\Core\Crypt\UuidCookieInterface; /** * Class SecureSessionService * * @package SP\Domain\Crypt\Services */ interface SecureSessionService { /** * Returns an unique filename from a browser cookie * * @throws ServiceException */ public static function getFileNameFrom(UuidCookieInterface $cookie, string $seed): string; /** * Returns the encryption key * * * @return Key|false */ public function getKey(): Key|bool; }