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 ) {} . {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
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 ) {} . {String}
@return: {String} The Smart.Blowfish 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
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 ; 32 bytes (256 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: 2024-12-16 17:13:26 +0000


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