APIs

Show:
Module: Classes

RC4 encryption decryption library

Constructor

RC4

() Object

Returns:

Object:

instantiated RC4

Methods

_arcfour_byte_string

(
  • i_input
)
Object

Convert byte array into string.

Parameters:

Returns:

Object:

output

_arcfour_crypt

(
  • i_data
  • i_key
)
String

Arcfour_algorithm

Parameters:

Returns:

String:

_arcfour_byte_string

_arcfour_hex_decode

(
  • i_input
)
Object

Decode hex string

Parameters:

Returns:

Object:

output

_arcfour_hex_encode

(
  • i_input
)
Object

Get the hex representation of an array of bytes

Parameters:

Returns:

Object:

output

_genKey

() Number

Generate a key in case we need a new one

Returns:

Number:

new ley

doDecrypt

(
  • plaintext
)
String

Execute an decryption using pass on i_value

Parameters:

Returns:

String:

decrypted i_value

doEncrypt

(
  • i_plaintext
)
String

Execute an encryption using pass

Parameters:

Returns:

String:

encrypted dtaa