mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import * as rasha from 'rasha';
|
|
|
|
const gOptions: Rasha.GenerateOptions = { format: 'jwk' };
|
|
|
|
rasha.generate(gOptions).then((keypair: Rasha.RsaKeys) => {
|
|
console.log(keypair.private);
|
|
console.log(keypair.public);
|
|
});
|
|
|
|
// const rsa: RsaKeys = Rasha.generate(gOptions);
|