Provides an easy to use HTTP/s Client interface that is meant to be extended from
- node >= 12
Full library documentation is available at https://utilities.turtlepay.dev
yarn add @turtlepay/utilities
npm install @turtlepay/utilities
import { AES, PEM } from '@turtlepay/utilities';
(async() => {
const pem = new PEM()
const keys = await pem.generateKeys();
const sig = await pem.sign({test: 'data'}, keys.privateKey);
console.log(await pem.verify({test: 'data'}, keys.publicKey, sig));
})
(async() => {
const aes = new AES('password');
const secret = await aes.encrypt({test: 'data'});
const data = await aes.decrypt<{test: string}>(secret);
console.log(data);
})
yarn test
👤 TurtlePay® Development Team
- Twitter: @TurtlePay
- Github: @TurtlePay
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2020 TurtlePay® Development Team.
This project is MIT licensed.