add methods to decrypt return data from router
[GitHub/Stricted/speedport-hybrid-php-api.git] / CryptLib / Random / Source / Random.php
CommitLineData
14d4f286
S
1<?php
2/**
3 * The Random Random Number Source
4 *
5 * This uses the *nix /dev/random device to generate high strength numbers
6 *
7 * PHP version 5.3
8 *
9 * @category PHPCryptLib
10 * @package Random
11 * @subpackage Source
12 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
13 * @copyright 2011 The Authors
14 * @license http://www.opensource.org/licenses/mit-license.html MIT License
15 * @version Build @@version@@
16 */
17
18namespace CryptLib\Random\Source;
19
20use CryptLib\Core\Strength;
21
22/**
23 * The Random Random Number Source
24 *
25 * This uses the *nix /dev/random device to generate high strength numbers
26 *
27 * @category PHPCryptLib
28 * @package Random
29 * @subpackage Source
30 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
31 * @codeCoverageIgnore
32 */
33class Random extends URandom {
34
35 /**
36 * @var string The file to read from
37 */
38 protected $file = '/dev/random';
39
40 /**
41 * Return an instance of Strength indicating the strength of the source
42 *
43 * @return Strength An instance of one of the strength classes
44 */
45 public static function getStrength() {
46 return new Strength(Strength::HIGH);
47 }
48
49}