getCryptAlgorithm() public method

public getCryptAlgorithm ( ) : mixed
return mixed the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'.
示例#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());
     }
 }