public function StaticDecrypt30cm(Benchmark $b) { $data = 'KNSUOVSVLI4W222LGZ2FK5TOG4ZDOZDJNZKEI3CVMN3TSQRVK5YXO6KBKFGECT3NJBWTOODEKFCHIVJZIJNHK4LTOJXU45KCLFNESNTCONGS6RTIGN5GOUZXJF2GIZRZMQ3WKSDZJEYWSODBIV3USOLHIZVGEYLDINYEEVZSMIYVIUTEG54VIRKFOJEXUTJLHFWSWQSNKVCHSOLKOBFEQQTRJ5BXI2L2IFKUOY2FK43XM6CEMVFXCS3BPAVWWRCB'; for ($i = 0; $i < $b->n; $i++) { Base32::D($data); } }
/** * @dataProvider base32P */ public function testBase32Static($src, $expect, $msg) { $encoded = Base32::E($src); $this->assertEquals($expect, $encoded, 'encrypt: ' . $msg); $actual = Base32::D($encoded); $this->assertEquals($src, $actual, 'decrypt: ' . $msg); }