Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.