Prado\Security\TSecurityManager::getCryptAlgorithm PHP Метод

getCryptAlgorithm() публичный Метод

public getCryptAlgorithm ( ) : mixed
Результат mixed the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'.
    public function getCryptAlgorithm()
    {
        return $this->_cryptAlgorithm;
    }

Usage Example

Пример #1
0
 public function testEncryption()
 {
     $sec = new TSecurityManager();
     $sec->init(null);
     try {
         $sec->setCryptAlgorithm('NotExisting');
         $foo = $sec->encrypt('dummy');
         self::fail('Expected TNotSupportedException not thrown');
     } catch (TNotSupportedException $e) {
         self::assertEquals('NotExisting', $sec->getCryptAlgorithm());
     }
 }