Smart.Framework Logo

final class \SmartCipherCrypto
{ } ::

Class: SmartCipherCrypto
Provides a built-in based feature to handle the Blowfish (CBC) encryption / decryption.
This provides an advanced crypto handler for Blowfish CBC algorithm.


class Methods

public static function encrypt ( string $cipher, string $key, string $data ) {} :: STRING
@return: {STRING} The encrypted data as B64S or empty string on error
@param: {ENUM} $cipher: Selected cipher: hash/{mode}, blowfish.cbc, openssl/cipher/mode
@param: {STRING} $key: The encryption key (must be between 7 and 4096 bytes)
@param: {STRING} $data: The plain data to be encrypted
Encrypts a string using the selected Cipher Algo.
public static function decrypt ( string $cipher, string $key, string $data ) {} :: STRING
@return: {STRING} The plain (decrypted) data or empty string on error
@param: {ENUM} $cipher: Selected cipher: hash/{mode}, blowfish.cbc, openssl/cipher/mode
@param: {STRING} $key: The encryption key (must be between 7 and 4096 bytes)
@param: {STRING} $data: The encrypted data
Decrypts a string using the selected Cipher Algo.

class Properties


class Constants


Sample code: PHP

<?php

// Usage example:
 
SmartCipherCrypto::some_method_of_this_class(...);

// #end php code


documentation generated on: 2023-10-19 23:15:44 +0000


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