Projekt

Obecné

Profil

Stáhnout (552 Bajtů) Statistiky
| Větev: | Revize:
1
var crypto = require('crypto')
2
if (typeof crypto.publicEncrypt !== 'function') {
3
  crypto = require('./browser')
4
}
5
exports.publicEncrypt = crypto.publicEncrypt
6
exports.privateDecrypt = crypto.privateDecrypt
7

    
8
if (typeof crypto.privateEncrypt !== 'function') {
9
  exports.privateEncrypt = require('./browser').privateEncrypt
10
} else {
11
  exports.privateEncrypt = crypto.privateEncrypt
12
}
13

    
14
if (typeof crypto.publicDecrypt !== 'function') {
15
  exports.publicDecrypt = require('./browser').publicDecrypt
16
} else {
17
  exports.publicDecrypt = crypto.publicDecrypt
18
}
(4-4/11)