
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
xor-crypto-js
Advanced tools
A xor-crypto implements version of javascript, support nodejs & broswer.
A xor-crypto implements version of javascript, support nodejs & broswer.
params both support any utf8-character-string.
npm i xor-crypto-js
// In NodeJs
var xor = require('xor-crypto-js');
// In broswer
// link with script tag in html: <script type="text/javascript" src="your-path-to/xor-crypto-js/index.js" ></script>
// then:
var xor = window.xor;
// In es6:
import xor from 'xor-crypto-js' // now, you should have babel support first.
var plain_text = '窝爱你,sigou'; // 待加密的原文
var cipher_key = 'dd哦en'; // 用来加密的密钥key
var cipher_text = xor.encrypt(plain_text, cipher_key); //得到密文
console.log('cipher_text: ' + cipher_text); // '01etbgj77fig93ki1r6801703dq0ji3ri9h'
var plain_is = xor.decrypt(cipher_text, cipher_key);
console.log('plain_is:',plain_is); // '窝爱你,sigou'
FAQs
A xor-crypto implements version of javascript, support nodejs & broswer.
The npm package xor-crypto-js receives a total of 9 weekly downloads. As such, xor-crypto-js popularity was classified as not popular.
We found that xor-crypto-js 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.