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

Added generateKeyPair #186

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ sudo: false
language: node_js
matrix:
include:
- node_js: '0.11'
- node_js: '12'
env: TEST_SUITE=unit
- node_js: '0.12'
- node_js: '12'
env: TEST_SUITE=unit
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=unit
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=standard
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=browser BROWSER_NAME=ie BROWSER_VERSION="10..latest"
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=browser BROWSER_NAME=chrome BROWSER_VERSION="-2..beta"
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=browser BROWSER_NAME=firefox BROWSER_VERSION="-2..latest"
- node_js: '4'
- node_js: '12'
env: TEST_SUITE=browser BROWSER_NAME=safari BROWSER_VERSION="7..latest"
- node_js: '4'
- node_js: '12'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These versions shouldn’t be changed; altho it’d be fine to add new matrix jobs.

env: TEST_SUITE=browser BROWSER_NAME=android BROWSER_VERSION="5.0..latest"
script: "npm run-script $TEST_SUITE"
env:
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ exports.privateEncrypt = publicEncrypt.privateEncrypt
exports.publicDecrypt = publicEncrypt.publicDecrypt
exports.privateDecrypt = publicEncrypt.privateDecrypt

var keygen = require('browser-keygen')

exports.generateKeyPair = keygen.generateKeyPair
exports.generateKeyPairSync = keygen.generateKeyPairSync

// the least I can do is make error messages for the rest of the node.js/crypto api.
// ;[
// 'createCredentials'
Expand Down
Loading