Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
RC4 stream cipher
my original python code
Install through NPM
npm install arc4
or
git clone git://github.com/hex7c0/arc4.git
inside nodejs project
var rc4 = require('arc4')('secret_key');
rc4.codeString('foo');
change your key (warning)
rc4.change('foo');
encode string data
rc4.codeString('string');
encode array data
rc4.codeArray([49,50,51]);
encode buffer data
rc4.codeBuffer(new Buffer('ciao'));
encode string, byte or buffer
rc4.code(your_data);
same methods with RC4A
postifx for RC4A
rc4.codeRC4A(your_data);
same methods with VMPC
postifx for VMPC
rc4.codeVMPC(your_data);
same methods with RC4p
postifx for RC4+
rc4.codeRC4p(your_data);
param
- String | Array | Buffer Your key (default "throw Error")Take a look at my examples
Copyright (c) 2014 hex7c0
Licensed under the GPLv3 license
FAQs
rc4 stream cipher
The npm package arc4 receives a total of 887 weekly downloads. As such, arc4 popularity was classified as not popular.
We found that arc4 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.