tweaking crypter class.
This commit is contained in:
parent
ce8c230e72
commit
8c226e9d67
|
@ -46,6 +46,11 @@ public function __construct($cipher, $mode, $key)
|
|||
/**
|
||||
* Create a new Crypter instance.
|
||||
*
|
||||
* Any cipher and mode supported by Mcrypt may be specified. For more information regarding
|
||||
* the supported ciphers and modes, check out: http://php.net/manual/en/mcrypt.ciphers.php
|
||||
*
|
||||
* By default, the AES-256 cipher will be used in CBC mode.
|
||||
*
|
||||
* @param string $cipher
|
||||
* @param string $mode
|
||||
* @param string $key
|
||||
|
@ -57,7 +62,7 @@ public static function make($cipher = MCRYPT_RIJNDAEL_256, $mode = 'cbc', $key =
|
|||
}
|
||||
|
||||
/**
|
||||
* Encrypt a value using the MCrypt library.
|
||||
* Encrypt a string using Mcrypt.
|
||||
*
|
||||
* @param string $value
|
||||
* @return string
|
||||
|
@ -89,7 +94,7 @@ protected function randomizer()
|
|||
}
|
||||
|
||||
/**
|
||||
* Decrypt a value using the MCrypt library.
|
||||
* Decrypt a string using Mcrypt.
|
||||
*
|
||||
* @param string $value
|
||||
* @return string
|
||||
|
|
Loading…
Reference in New Issue