McryptRijndael128::getStrength()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * The RandomLib library for securely generating random numbers and strings in PHP
5
 *
6
 * @author     Anthony Ferrara <[email protected]>
7
 * @copyright  2011 The Authors
8
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
9
 * @version    Build @@version@@
10
 */
11
12
/**
13
 * mcrypt mixer using the Rijndael cipher with 128 bit block size
14
 *
15
 * PHP version 5.3
16
 *
17
 * @category   PHPCryptLib
18
 * @package    Random
19
 * @subpackage Mixer
20
 *
21
 * @author     Anthony Ferrara <[email protected]>
22
 * @copyright  2013 The Authors
23
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
24
 *
25
 * @version    Build @@version@@
26
 */
27
namespace RandomLib\Mixer;
28
29
use RandomLib\AbstractMcryptMixer;
30
use SecurityLib\Strength;
31
32
/**
33
 * mcrypt mixer using the Rijndael cipher with 128 bit block size
34
 *
35
 * @category   PHPCryptLib
36
 * @package    Random
37
 * @subpackage Mixer
38
 *
39
 * @author     Anthony Ferrara <[email protected]>
40
 * @author     Chris Smith <[email protected]>
41
 */
42
class McryptRijndael128 extends AbstractMcryptMixer
43
{
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public static function getStrength()
48
    {
49
        return new Strength(Strength::HIGH);
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    protected function getCipher()
56
    {
57
        return 'rijndael-128';
58
    }
59
}
60