# static class smartJ$CipherCrypto
{ } .

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

- Language: Javascript
- Located at: lib/js/framework/smart-framework.pak.js; crypt_utils.js
- Package: Sf.Javascript:Crypto
- Class Name: smartJ$CipherCrypto
- Frozen: Yes
- Version: 20241216
- Usage: smartJ$CipherCrypto.method();
- Depends: smartJ$Utils, smartJ$BaseConv, smartJ$CryptoHash, smartJ$DhKx, smartJ$CryptoCipherTwofish, smartJ$CryptoCipherBlowfish

## 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:00:46 +0000

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