3 * The strength FlyweightEnum class
7 * @category PHPCryptLib
9 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
10 * @copyright 2011 The Authors
11 * @license http://www.opensource.org/licenses/mit-license.html MIT License
12 * @version Build @@version@@
15 namespace CryptLib\Core
;
18 * The strength FlyweightEnum class
20 * All mixing strategies must extend this class
22 * @category PHPCryptLib
24 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
26 class Strength
extends Enum
{
29 * We provide a default value of VeryLow so that we don't accidentally over
30 * state the strength if we forget to pass in a value...
32 const __DEFAULT
= self
::VERYLOW
;
35 * This represents Non-Cryptographic strengths. It should not be used any time
36 * that security or confidentiality is at stake
41 * This represents the bottom line of Cryptographic strengths. It may be used
42 * for low security uses where some strength is required.
47 * This is the general purpose Cryptographical strength. It should be suitable
48 * for all uses except the most sensitive.
53 * This is the highest strength available. It should not be used unless the
54 * high strength is needed, due to hardware constraints (and entropy