# steam-crypto

> Node.js implementation of Valve's crypto

Latest version **0.0.1** (published 2015-07-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install steam-crypto
pnpm add steam-crypto
yarn add steam-crypto
bun add steam-crypto
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-07-12 |
| First published | 2015-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nikolai Vavilov |
| Maintainers | seishun |
| Keywords | steam, crypto |

## Links

- npm: https://www.npmjs.com/package/steam-crypto
- Repository: https://github.com/seishun/node-steam-crypto
- Issues: https://github.com/seishun/node-steam-crypto/issues
- npm.io page: https://npm.io/package/steam-crypto

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2015-07-12

## README

# node-steam-crypto

Node.js implementation of Steam crypto. All keys and data are passed as Buffers.

## generateSessionKey()

Generates a 32 byte random blob of data and encrypts it with RSA using the Steam system's public key. Returns an object with the following properties:
* `plain` - the generated session key
* `encrypted` - the encrypted session key

## symmetricEncrypt(input, sessionKey)

Encrypts `input` using `sessionKey` and returns the result.

## symmetricDecrypt(input, sessionKey)

Decrypts `input` using `sessionKey` and returns the result.

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