![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
burningpig-encryption
Advanced tools
A pure javascript module for the RSA functionality for BurningPig & Minecraft encryption
A pure javascript module for the RSA functionality for BurningPig & Minecraft encryption
####What does it do? This module can generate an RSA public/private key pair in pure JavaScript. It can also generate the ASN.1 for the key.
####Is it cryptographically safe? I have no idea. I only use it for implimenting the encryption for the Minecraft protcol. I don't use it for any important encryption scenarios.
####What is it based on? This module is adapated for Node.js from the following libraries:
####Example:
You can run this example by running node example
var rsa = require("./src/rsa.js");
var key = new rsa.Key();
var message = "All your bases are belong to us.";
console.log("Message:\n"+message+"\n");
// Generate a key
key.generate(1024, "10001");
console.log("Key:\n");
console.log("n:" + key.n.toString(16));
console.log("e:" + key.e.toString(16));
console.log("d:" + key.d.toString(16));
console.log("\n");
// Encrypt
var encrypted = key.encrypt(message);
console.log("Encrypted:\n" + rsa.linebrk(encrypted, 64) + "\n" );
// Decrypt
var decrypted = key.decrypt(encrypted);
console.log("Decrypted:" + rsa.linebrk(decrypted, 64) + "\n");
var sig = key.signString(message, "sha256");
console.log("String signature: \n" + rsa.linebrk(sig, 64));
var pubkey = new rsa.Key();
pubkey.n = key.n;
pubkey.e = key.e;
var verified = pubkey.verifyString(message, sig);
console.log("Verfied: " + verified);
####License BurningPig-encryption & the base libraries are MIT licensed.
See the LICENSE file for the list of specific licenses for each library
FAQs
A pure javascript module for the RSA functionality for BurningPig & Minecraft encryption
The npm package burningpig-encryption receives a total of 6 weekly downloads. As such, burningpig-encryption popularity was classified as not popular.
We found that burningpig-encryption demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.