# asclepios-sse-client

> client for the ASCLPIOS symmetric searchable encryption service

Latest version **0.8.0-snet** (published 2021-06-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install asclepios-sse-client
pnpm add asclepios-sse-client
yarn add asclepios-sse-client
bun add asclepios-sse-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0-snet |
| Published | 2021-06-23 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 146.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jmzb |
| Keywords | asclepios, sse |

## Links

- npm: https://www.npmjs.com/package/asclepios-sse-client
- Repository: https://gitlab.com/indie-sleep-demo/asclepios-sse-client-node
- Homepage: https://gitlab.com/indie-sleep-demo/asclepios-sse-client-node#readme
- Issues: https://gitlab.com/indie-sleep-demo/asclepios-sse-client-node/issues
- npm.io page: https://npm.io/package/asclepios-sse-client

## Dependencies (1)

- [asmcrypto.js](https://npm.io/package/asmcrypto.js.md) ^2.3.2

## Recent versions

- 0.8.0-snet (latest) — 2021-06-23
- 0.3.1 — 2021-05-01
- 0.3.0 — 2021-03-10
- 0.2.9 — 2021-01-06
- 0.2.8 — 2020-12-30
- 0.2.7 — 2020-12-07
- 0.2.6 — 2020-11-10
- 0.2.5 — 2020-10-22
- 0.2.4 — 2020-09-28
- 0.2.3 — 2020-08-11
- 0.2.2 — 2020-06-23
- 0.2.1 — 2020-06-23
- 0.2.0 — 2020-06-10
- 0.1.9 — 2020-06-09
- 0.1.8 — 2020-06-09
- … 8 more at https://npm.io/package/asclepios-sse-client/versions

## README

# asclepios-sse-client

A javascript client for the ASCLEPIOS symmetric searchable encryption service for Node.js and web browsers. This code is ported directly from the original Django application [ASCLEPIOS SSE Client](https://github.com/UoW-CPC/Asclepios-Client).

## Example Usage

### 1. Install deps

```command
npm install
```

### 2. Set up environment

* Create the file `.env` and add something like the following:

```sh
export TA_URL="http://localhost/ta"
export SSE_URL="http://localhost/sse"
export SALT="ZWdhYndlZmc=""
export IV="bGd3YmFnd2c=""
export ITER="10000"
export KS="256"
export TS="64"
export HASH_LEN="256"
export CHUNK_SIZE="32768"
export NO_CHUNKS_PER_UPLOAD="30"
export SALT_TA="ZRVja4LFrFY=""
export IV_TA="YXp5bWJscWU=""
export ITER_TA="10000"
export KS_TA="128"
export TS_TA="64"
export SGX_ENABLE="false"
export CP_ABE_URL="http://localhost:8084"
export AUTH="true"
export DEBUG="true"
export SMALL_FILE="0"

```

```sh
. .env

find . -name '*.js' -type f -exec sed -i "s|ta_url|$TA_URL|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|sse_url|$SSE_URL|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|salt_value|$SALT|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|iv_value|$IV|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|iter_value|$ITER|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|ks_value|$KS|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|ts_value|$TS|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|mode_value|$MODE|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|adata_value|$ADATA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|adata_len_value|$ADATA_LEN|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|hash_length_value|$HASH_LEN|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|chunk_size_value|$CHUNK_SIZE|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|no_chunks_per_upload_value|$NO_CHUNKS_PER_UPLOAD|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|salt_ta_value|$SALT_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|iv_ta_value|$IV_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|iter_ta_value|$ITER_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|ks_ta_value|$KS_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|ts_ta_value|$TS_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|mode_ta_value|$MODE_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|adata_ta_value|$ADATA_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|adata_len_ta_value|$ADATA_LEN_TA|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|sgx_enable_value|$SGX_ENABLE|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|cp_abe_url|$CP_ABE_URL|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|debug_value|$DEBUG|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|auth_value|$AUTH|g" {} \;
find . -name '*.js' -type f -exec sed -i "s|small_file_value|$SMALL_FILE|g" {} \;
```
## Usage

* see the [ASCLEPIOS SSE Manuals](https://github.com/UoW-CPC/Asclepios-Manual)


## Other Links
* [ASCLEPIOS SSE Client](https://github.com/UoW-CPC/Asclepios-Client)
* [ASCLEPIOS SSE Server](https://github.com/UoW-CPC/Asclepios-Server)
* [ASCLEPIOS SSE Trusted Authority](https://github.com/UoW-CPC/Asclepios-TrustedAuthority)
* [ASCLEPIOS SSE Deployment](https://github.com/UoW-CPC/Asclepios-Deployment)

---
_Source: https://npm.io/package/asclepios-sse-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
