Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arc4

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc4

rc4 stream cipher

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
324
decreased by-27.84%
Maintainers
1
Weekly downloads
 
Created
Source

arc4

NPM version Build Status devDependency Status

RC4 stream cipher

my original python code

Installation

Install through NPM

npm install arc4

or

git clone git://github.com/hex7c0/arc4.git

API

inside nodejs project

var rc4 = require('arc4')('secret_key');

rc4.codeString('foo');

methods

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);

rc4(param)

  • param - String | Array | Buffer Your key (default "throw Error")
Examples

Take a look at my examples

License

Copyright (c) 2014 hex7c0

Licensed under the GPLv3 license

Keywords

FAQs

Package last updated on 28 Jul 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc