# s3ncrypted_proxy

> S3ncrypted Proxy is simple proxy that makes securely sharing data via Amazon S3 easy

Latest version **1.1.0** (published 2012-03-26) · 0 weekly downloads

## Install

```sh
npm install s3ncrypted_proxy
pnpm add s3ncrypted_proxy
yarn add s3ncrypted_proxy
bun add s3ncrypted_proxy
```

Provides the command `s3ncrypted_proxy`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2012-03-26 |
| First published | 2012-03-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Geoff Flarity |
| Maintainers | gflarity |

## Links

- npm: https://www.npmjs.com/package/s3ncrypted_proxy
- Repository: https://github.com/gflarity/s3ncrypted_proxy
- npm.io page: https://npm.io/package/s3ncrypted_proxy

## Dependencies (3)

- [request](https://npm.io/package/request.md) 2.9.153
- [restify](https://npm.io/package/restify.md) 1.3.0
- [optimist](https://npm.io/package/optimist.md) 0.3.1

## Recent versions

- 1.1.0 (latest) — 2012-03-26
- 1.0.7 — 2012-03-26
- 1.0.6 — 2012-03-26
- 1.0.5 — 2012-03-22
- 1.0.4 — 2012-03-22
- 1.0.3 — 2012-03-22
- 1.0.2 — 2012-03-22
- 1.0.1 — 2012-03-22
- 1.0.0 — 2012-03-22

## README

# About

S3ncrypted Proxy was created to make securely sharing Virtual Box images easy but will work with any type of file!

# Quick Start

Install s3ncrypted_proxy global, this will make the command s3ncryped_proxy available in your path (otherwise just install from git):

```
sudo npm install -g s3ncypted_proxy
```

Generate yourself a strong password/key and put into a file:

```
umask 077 # the passphrase file will have perms 700
openssl rand -base64 12 > .gpg_passphrase
```

Use this to encrypt your box file:

```
gpg -c --passphrase-file .gpg_passphrase <file>
```

Future versions will allow you to upload the file with curl. For now, use the S3 management GUI to upload the gpg encrypted <file>.gpg.

Get the size of the orginal file:

```
wc -c <file>
```

Got into the properties of the uploaded gpg file in S3. Add the following meta data:

key: x-amz-meta-gpg-content-length
value : <size of unencrypted file from above>

Click save.

Create a config.json file in the S3Encrypted Proxy dir:

```
{
"aws_key": "<your key>",
"aws_secret": "<you secret>",
"gpg_passphrase_file" : ".gpg_passphrase"
}
```

Start S3ncrypted Proxy:

node s3ncrypted_proxy


Now point vagrant, or whatever to http://localhost:8000/bucket/object. If the object ends in .gpg it will automatically decrypted on the fly as it downloads!

# Sharing

Use Amazon IAM to create new user credentials and give them read permissions to your encrypted files. They will need these and the .gpg_passphrase file in order to use S3ncrypted Proxy

#Future Ideas

I want to make uploading easy with curl.  It should be easy but I might not get to it for a while so feel free to send me a pull request.

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