Reference Source
public class | source

EncodeDecode

Static Method Summary

Static Public Methods
public static

decode(arg_string: string, arg_encoding_method: string | undefined): string

Decode a string.

public static

encode(arg_string: string, arg_encoding_method: string | undefined): string

Encode a string.

Constructor Summary

Public Constructor
public

constructor(): nothing

Create a EncodeDecode instance.

Static Public Methods

public static decode(arg_string: string, arg_encoding_method: string | undefined): string source

Decode a string.

Params:

NameTypeAttributeDescription
arg_string string

string to hash.

arg_encoding_method string | undefined

encoding method (default:hex,utf8,utf16,binary,base64,hexstr)

Return:

string

decoded string in utf8

public static encode(arg_string: string, arg_encoding_method: string | undefined): string source

Encode a string.

Params:

NameTypeAttributeDescription
arg_string string

utf8 string to hash.

arg_encoding_method string | undefined

encoding method (default:hex or utf8,utf16,binary,base64,hexstr)

Return:

string

encoded string

Public Constructors

public constructor(): nothing source

Create a EncodeDecode instance.

API:
    ->hash():string - 

Return:

nothing