Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help regarding migrating from an older version of jsencrypt #276

Open
ChrisMGeo opened this issue Nov 13, 2022 · 0 comments
Open

Help regarding migrating from an older version of jsencrypt #276

ChrisMGeo opened this issue Nov 13, 2022 · 0 comments

Comments

@ChrisMGeo
Copy link

ChrisMGeo commented Nov 13, 2022

JSEncryptRSAKey has the property n inherited from RSAKey. When trying to migrate from ^3.0.0-rc.1 to use TypeScript, this n is protected. Any way I can read this property in the current version of jsencrypt?
The code in which I need to access n is:

var maxLength = (key.n.bitLength() + 7) >> 3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant