コード例 #1
0
ファイル: CipherDES.php プロジェクト: norseblue/sikker
 /**
  * Gets the cipher description.
  *
  * @return string Returns the cipher description string.
  * @since 0.3.5
  */
 public function getCipherDescription() : string
 {
     return sprintf('%s-%s', self::SUPPORTED_METHODS[$this->getMethod()], strtoupper(CipherMode::asString($this->getMode())));
 }
コード例 #2
0
ファイル: CipherAES.php プロジェクト: norseblue/sikker
 /**
  * Gets the cipher description.
  *
  * @return string Returns the cipher description string.
  * @since 0.3.5
  */
 public function getCipherDescription() : string
 {
     return sprintf('AES-%s-%s', $this->getKeySize(), strtoupper(CipherMode::asString($this->getMode())));
 }
コード例 #3
0
ファイル: CipherRC2.php プロジェクト: norseblue/sikker
 /**
  * Gets the cipher description.
  *
  * @return string Returns the cipher description string.
  * @since 0.3.5
  */
 public function getCipherDescription() : string
 {
     if ($this->getKeySize() == KeySize::_128) {
         return sprintf('RC2-%s', strtoupper(CipherMode::asString($this->getMode())));
     }
     return sprintf('RC2-%s-%s', $this->getKeySize(), strtoupper(CipherMode::asString($this->getMode())));
 }