mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-03 20:41:12 -05:00
1226f0f520
also create a few other files containing common information and functions : * mcHexDigest.js which contain the function of the same name used in both createClient.js and createServer.js * ursa.js which handle the abstraction on top of ursa and ursa-purejs : used in both createClient.js and createServer.js * version.js used in index.js, createClient.js and createServer.js
9 lines
268 B
JavaScript
9 lines
268 B
JavaScript
var ursa;
|
|
try {
|
|
ursa = require("ursa");
|
|
} catch(e) {
|
|
console.log("You are using a pure-javascript implementation of RSA.");
|
|
console.log("Your performance might be subpar. Please consider installing URSA");
|
|
ursa = require("ursa-purejs");
|
|
}
|
|
module.exports=ursa;
|