Example #1
0
 /**
  * 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())));
 }
Example #2
0
 /**
  * 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())));
 }
Example #3
0
 /**
  * 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())));
 }