Smart.Framework Logo

static class smartJ$CipherCrypto
{ } .

CLASS :: Smart Cipher Crypto (ES6, Strict Mode)
Smart Twofish / Blowfish (CBC) for JavaScript: Encrypt / Decrypt


class Methods

public static function tfEnc ( {String} key, {String} str, {Boolean} isBinary, {Boolean} randomize ) {} . {String}
@return: {String} The Smart.Twofish encrypted string
@param: {String} key The encryption key ; 32 bytes (256 bit) ; iV is auto-managed, 16 bytes (128 bit)
@param: {String} str The plain string
@param: {Boolean} isBinary Encoding character set mode ; default is FALSE ; set to TRUE if the string is binary ASCII to avoid normalize as UTF-8 ; for normal, UTF-8 content this must be set to FALSE
@param: {Boolean} randomize Add randomization ; default is TRUE ; set to false to get a fixed encrypted data, without randomization
Smart.Twofish encrypts (CBC) a string using a smart derived encryption key and iv (PBKDF2 based)
public static function tfDec ( {String} key, {String} str ) {} . {String}
@return: {String} The Smart.Twofish decrypted string
@param: {String} key The encryption key ; 32 bytes (256 bit) ; iV is auto-managed, 16 bytes (128 bit)
@param: {String} str The Smart.Twofish encrypted string
Smart.Twofish decrypts (CBC) a string using a smart derived encryption key and iv (PBKDF2 based)
public static function bfEnc ( {String} key, {String} str, {Boolean} isBinary, {Boolean} randomize ) {} . {String}
@return: {String} The Smart.Blowfish encrypted string
@param: {String} key The encryption key ; 56 bytes (448 bit) ; iV is auto-managed, 16 bytes (128 bit)
@param: {String} str The plain string
@param: {Boolean} isBinary Encoding character set mode ; default is FALSE ; set to TRUE if the string is binary ASCII to avoid normalize as UTF-8 ; for normal, UTF-8 content this must be set to FALSE
@param: {Boolean} randomize Add randomization ; default is TRUE ; set to false to get a fixed encrypted data, without randomization
Smart.Blowfish encrypts (CBC) a string using a smart derived encryption key and iv (SAFE based)
public static function bfDec ( {String} key, {String} str ) {} . {String}
@return: {String} The Smart.Blowfish decrypted string
@param: {String} key The encryption key ; 56 bytes (448 bit) ; iV is auto-managed, 16 bytes (128 bit)
@param: {String} str The Smart.Blowfish encrypted string
Smart.Blowfish decrypts (CBC) a string using a smart derived encryption key and iv (SAFE based)

class Properties


class Constants



documentation generated on: 2026-01-14 01:53:25 +0000


Smart.Framework © 2009-2026 unix-world.org