Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/li0ard/angstrem3
Long-term key generator for Elektronika MK-85C
https://github.com/li0ard/angstrem3
Last synced: about 2 months ago
JSON representation
Long-term key generator for Elektronika MK-85C
- Host: GitHub
- URL: https://github.com/li0ard/angstrem3
- Owner: li0ard
- License: gpl-3.0
- Created: 2024-11-05T18:24:17.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-05T18:25:56.000Z (about 2 months ago)
- Last Synced: 2024-11-05T19:30:41.764Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angstrem3
![](https://mk.bs0dd.net/mk85c/mk85cf.jpg)
## RUS:
Реализация алгоритма "Ангстрем-3" для Электроники МК-85С на TypeScript
### Установка
```bash
npm i @li0ard/angstrem3
```### Пример
```ts
import { Cipher, Key } from "@li0ard/angstrem3";const key = Key.fromString("84534 45986 35465 64750 69746 75562 96281 96471 16889 77629 94879 96394 73073 45415 29900 39356 54944 10712 85757 23266 32131 18232");
const c = new Cipher(key)
const enc = c.encrypt("ТЕСТ")
console.log(enc) // => 38041 88931 77869 54905
console.log(c.decrypt(enc)) // => ТЕСТ
```## ENG:
Implementation of the Angstrem-3 algorithm for Elektronika MK-85C in TypeScript
### Install
```bash
npm i @li0ard/angstrem3
```### Example
```ts
import { Cipher, Key } from "@li0ard/angstrem3";const key = Key.fromString("84534 45986 35465 64750 69746 75562 96281 96471 16889 77629 94879 96394 73073 45415 29900 39356 54944 10712 85757 23266 32131 18232");
const c = new Cipher(key)
const enc = c.encrypt("ТЕСТ")
console.log(enc) // => 38041 88931 77869 54905
console.log(c.decrypt(enc)) // => ТЕСТ
```