Exemplo n.º 1
0
 /**
  * Prepare the string to crypt/decrypt: this will return the string according to keys case
  *
  * @param $str
  * @return array|string
  */
 protected function _prepare($str)
 {
     if (!is_string($str)) {
         return $str;
     }
     return Helper::homogenizeString($str, $this->substitution_table->getCharacterFlag());
 }
 /**
  * Prepare the string to crypt/decrypt: this will return the string according to keys case
  *
  * @param $str
  * @return array|string
  */
 protected function _prepare($str)
 {
     return Helper::homogenizeString($str, $this->substitution_table->getPlaintextKey());
 }
 /**
  * Prepare the string
  *
  * @param $str
  * @return array|string
  */
 protected function _prepare($str)
 {
     return Helper::homogenizeString($str, $this->character_flag);
 }
 /**
  * Prepare the string to crypt/decrypt: this will return the string according to keys case
  *
  * @param $str
  * @return array|string
  */
 protected function _prepare($str)
 {
     return Helper::homogenizeString($str, $this->plaintext_key);
 }