A simple plugin for asymmetric keys operations.
tns plugin add nativescript-cryptography
import { Cryptography } from "nativescript-cryptography";
param1: random tag string param2: size of key param3: save in secure storage (optional)
const keyPair = cryptography.generateRsaPrivateKey(RsaPrivateKeyTag, RsaKeySize, true);
MIT