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

RS256 using a passphrase #51

Open
richardhyatt opened this issue Nov 4, 2016 · 2 comments
Open

RS256 using a passphrase #51

richardhyatt opened this issue Nov 4, 2016 · 2 comments

Comments

@richardhyatt
Copy link

Would it be possible to add an option that would allow the use of a passphrase to decode the private key when using RS256?

Something like:

// jwt.js line 180

 base64str = crypto.createSign(method).update(input).sign( { key, passphrase}, 'base64');

I can create a patch for this functionality and submit a pull request if it would get included in the next release.

@AlexandreHagen
Copy link

Ping @hokaccha

1 similar comment
@AlexandreHagen
Copy link

Ping @hokaccha

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

2 participants