# @franatrtur/rsa_demo

> This package contains a demonstrative implementation of the RSA cipher for a class paper

Latest version **1.5.6** (published 2023-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install @franatrtur/rsa_demo
pnpm add @franatrtur/rsa_demo
yarn add @franatrtur/rsa_demo
bun add @franatrtur/rsa_demo
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.6 |
| Published | 2023-05-08 |
| First published | 2023-02-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | František Čech |
| Maintainers | franatrtur |
| Keywords | rsa, toy, cipher |

## Links

- npm: https://www.npmjs.com/package/@franatrtur/rsa_demo
- Repository: https://github.com/Franatrtur/rsa_demo
- Homepage: https://github.com/Franatrtur/rsa_demo#readme
- Issues: https://github.com/Franatrtur/rsa_demo/issues
- npm.io page: https://npm.io/package/@franatrtur/rsa_demo

## 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

- 1.5.6 (latest) — 2023-05-08
- 1.5.5 — 2023-03-07
- 1.5.4 — 2023-03-07
- 1.5.3 — 2023-03-07
- 1.5.2 — 2023-03-07
- 1.5.1 — 2023-03-07
- 1.5.0 — 2023-02-25
- 1.4.1 — 2023-02-25
- 1.4.0 — 2023-02-25
- 1.3.0 — 2023-02-25
- 1.2.0 — 2023-02-25
- 1.1.0 — 2023-02-25
- 1.0.0 — 2023-02-22

## README

Tento archiv obsahuje demonstrativní implementaci šifry RSA v programovacím jazyce javascript
pro ročníkovou práci "Asymetrická kryptografie a šifrovací systém RSA"
(Gymnázium Slovanské náměstí, Brno, 2023). Autor Franišek Čech, V.A

Ukázka procesu RSA: https://franatrtur.github.io/demo/

#### Použití:
Modul exportuje (ES6 modle system) třídu `RSAKey{mod: number, exponent: number}` a 
`RSAKeyPair{publicKey: RSAKey, privateKey: RSAKey}`.  
Jak začít modul používat:
```bash
$ npm install @franatrtur/rsa_demo
```
```javascript
import { RSAKey, RSAKeyPair } from "@franatrtur/rsa_demo"
```
Šifrování a dešifrování správ (čísla 1-1000) lze provádět pomocí funkce `(object RSAKey).process(message: number): number`.  
Vytvoření klíčového páru pze provést pomocí funkce `(class RSAKeyPair).generate()`.  
Funkce vybere exponent 7 a náhodná prvočísla z intervalu 2 do 256, ale je možné jí podat p, q, e jako parametry.

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