A suite of routines for performing RSA public-key computations in JavaScript modified from project of Dave Shapiro
npm install js-rsa-dave
// in components
import RSA from 'js-rsa-dave'
RSA.encryptedString()
RSA.getKeyPair()
RSA.encryptedString(RSA.getKeyPair(rsaTokenPublicExponent, '', rsaTokenPublicModulus), userInputPassword)
// return encrypted password