# Does snarl encrypt its communication with the server?

**URL:** <https://community.stardog.com/t/does-snarl-encrypt-its-communication-with-the-server/4036>\
**Category:** Support\
**Created:** [October 21, 2022, 12:22pm UTC](https://community.stardog.com/t/does-snarl-encrypt-its-communication-with-the-server/4036 "2022-10-21T12:22:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cesar](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@Cesar](https://community.stardog.com/u/Cesar)\
**Post date:** [October 21, 2022, 12:22pm UTC](https://community.stardog.com/t/does-snarl-encrypt-its-communication-with-the-server/4036/1 "2022-10-21T12:22:55Z")

</div>

Hi,  
I usually execute my sparql queries as simple as this pseudo-code below.

```auto
snarlTemplate.execute(
        connection -> {
          SelectQueryResult result = null;
          try {
            // I'm doing usual stuff here like preparing my query, execute it and getting the return the return it
          } catch (StardogException e) {
            log.error("Error sending SELECT query to Stardog", e);
            throw new RuntimeException(e);
          } catch (QueryExecutionFailure e) {
            log.error("Error evaluating SELECT SPARQL query", e);
            throw new RuntimeException(e);
          } finally {
            if (result != null) {
              try {
                result.close();
              } catch (QueryExecutionFailure e) {
                log.error(e.toString());
              }
            }
          }
        });

```

I was doing some debugging and profiling recently, it seemed to me that snarl sends each query to the stardog server after doing some encryption and results are somehow returned in an encrypted way. I thought it might be a good idea to ask it here. Does snarl do such sort of encryption? if yes, please tell me more about it. Thank you.

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [November 3, 2022, 3:20pm UTC](https://community.stardog.com/t/does-snarl-encrypt-its-communication-with-the-server/4036/2 "2022-11-03T15:20:10Z")

</div>

Hi,

There's no encryption being done unless you are using SSL as per [the docs](https://docs.stardog.com/operating-stardog/security/encryption-in-transit). What you see as encrypted data is likely the binary SPARQL results format that we default to for transmission, which the stardog client knows how to parse.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [November 24, 2022, 2:24am UTC](https://community.stardog.com/t/does-snarl-encrypt-its-communication-with-the-server/4036/3 "2022-11-24T02:24:29Z")

</div>


