Encryption

Source: EncryptMin.js:46

Modifiers: abstract

Utilities to encrypt and decrypt strings using simple methods, just to avoid write
passwords in plain text in data and configuration files. Do not use it as a
secure cryptographic system!

Based on Encryption
utilities, created by Albert Llastarri for JClic.

IMPORTANT: This is a shortened version of Encryption with only the methods needed to decrypt
stored passwords. Full version is on file src/misc/encryption/Encryption.js


Constructor

new Encryption(): Encryption

Static Methods

Decrypt(txt: string): string

Decrypts the given code

Parameters

  • txt (string) — Code to be decrypted

Returns

  • string

hexCharArrayToChar(cA: string, fromIndex: number): string

Parameters

  • cA (string) — (was char[])
  • fromIndex (number)

Returns

  • string — (was char)

hexCharArrayToInt(cA: string, fromIndex: number): number

Parameters

  • cA (string) — (was char[])
  • fromIndex (number)

Returns

  • number

decodifyZerosField(cA: string): string

Parameters

  • cA (string) — (was char[])

Returns

  • string

decompressZeros(cA: string): string

Parameters

  • cA (string) — (was char[])

Returns

  • string — (was StringBuilder)

decodifyFromHex(sb1: string): string

Parameters

  • sb1 (string) — (was StringBuilder)

Returns

  • string

unchangeOrder(s: string): string

Parameters

  • s (string)

Returns

  • string — (was char[])

codify(word: string): string

Parameters

  • word (string)

Returns

  • string

decodify(word: string): string

Parameters

  • word (string)

Returns

  • string

Static Fields

BLANK: string

Default bank password