Example #1
0
 /**
  * @param string $plaintext_key
  * @param string $user_key
  */
 public function __construct($plaintext_key = '', $user_key = '')
 {
     $user_keys = str_split($user_key);
     parent::__construct($plaintext_key, $user_keys);
 }
 /**
  * @param string $plaintext_key
  * @param int $scope_flag
  * @param int $occurrence_flag
  * @param int $character_flag
  */
 public function __construct($plaintext_key = '', $scope_flag = Cryptography::SCOPE_WORD, $occurrence_flag = Cryptography::FIRST_OCCURRENCE, $character_flag = Cryptography::ALPHABET_UPPER)
 {
     parent::__construct($plaintext_key, array());
     $this->setOccurrenceFlag($occurrence_flag)->setCharacterFlag($character_flag)->setScopeFlag($scope_flag);
 }
Example #3
0
 /**
  * @param string $plaintext_key
  * @param int $rotation
  */
 public function __construct($plaintext_key = '', $rotation = 1)
 {
     parent::__construct($plaintext_key, array(str_split($plaintext_key)));
     $this->setRotation($rotation);
 }
Example #4
0
 /**
  * @param string $plaintext_key
  */
 public function __construct($plaintext_key = '')
 {
     parent::__construct($plaintext_key);
     $this->_buildSubstitutionTable();
 }