https://github.com/sweatpotato13/lizard-ts
PQC Lizard implementation with typescript
https://github.com/sweatpotato13/lizard-ts
npm post-quantum-cryptography
Last synced: 9 months ago
JSON representation
PQC Lizard implementation with typescript
- Host: GitHub
- URL: https://github.com/sweatpotato13/lizard-ts
- Owner: sweatpotato13
- License: mit
- Created: 2021-06-07T09:34:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T20:06:38.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T05:03:11.857Z (9 months ago)
- Topics: npm, post-quantum-cryptography
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/lizard-ts
- Size: 1.6 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to lizard-ts 👋
> Ethersdcan API library with typescript
### 🏠 [Homepage](https://github.com/sweatpotato13/lizard-ts)
## Install
```sh
npm i lizard-ts
yarn add lizard-ts
```
## Run tests
```sh
yarn test
```
## Usage
```ts
const plain = randomPlaintext();
const m_transpose = scalarMultiplyVector(128, plain);
const key = keyGeneration();
const enc = encrypt(m_transpose, key.pk);
const dec = decrypt(enc, key.sk);
const ms = plain.toString();
const ts = dec.toString();
if (ms === ts) {
console.log("success");
} else {
console.log("failed");
}
```
## Author
👤 **CuteWisp **
- Website: Cutewisp.com
- Github: [@sweatpotato13](https://github.com/sweatpotato13)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/sweatpotato13/lizard-ts/issues).
## Show your support
Give a ⭐️ if this project helped you!
---
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_