/** * @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); }
/** * @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); }
/** * @param string $plaintext_key */ public function __construct($plaintext_key = '') { parent::__construct($plaintext_key); $this->_buildSubstitutionTable(); }