index.js 348 B

1234567891011121314151617181920
  1. require('./create-hash')
  2. require('./create-hmac')
  3. if (!process.browser) {
  4. require('./dh')
  5. }
  6. require('./pbkdf2')
  7. try {
  8. require('randombytes')(8)
  9. require('./ecdh')
  10. require('./public-encrypt')
  11. require('./random-bytes')
  12. require('./sign')
  13. require('./random-fill')
  14. } catch (e) {
  15. console.log('no secure rng avaiable')
  16. }
  17. require('./aes')