Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
RC4 stream cipher. You can select from ['arc4', 'rc4a', 'vmpc', 'rc4+'] algorithm, and encode/decode with different encodings for *String only.
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');
var cipher = rc4('arc4', 'secret_key');
var d = cipher.encodeString('ciao');
var e = cipher.decodeString(d);
change your key (warning) and reload gKsa
cipher.change('foo');
encode string data
cipher.encodeString('string','utf8','base64);
encode array data
cipher.encodeArray([49,50,51]);
encode buffer data
cipher.encodeBuffer(new Buffer('ciao'));
encode string or byte or buffer (switch type)
cipher.encode(your_data);
for decoding, change "encode*" to "decode*"
cipher.decode(your_data);
algorithm
- String | Array | Buffer Choose between ['arc4', 'rc4a', 'vmpc', 'rc4+'] (default "throw Error")password
- String Your key (default "throw Error")Take a look at my examples
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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.