Rev 72 | Rev 74 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 72 | Rev 73 | ||
---|---|---|---|
Line 635... | Line 635... | ||
635 | } |
635 | } |
636 | } |
636 | } |
637 | 637 | ||
638 | // --- Part 6: Selftest |
638 | // --- Part 6: Selftest |
639 | 639 | ||
- | 640 | /* |
|
640 | for ($i=0; $i<9999; $i++) { |
641 | for ($i=0; $i<9999; $i++) { |
641 | assert($i===base64_int_decode(base64_int_encode($i,4))); |
642 | assert($i===base64_int_decode(base64_int_encode($i,4))); |
642 | } |
643 | } |
643 | 644 | ||
644 | $rnd = random_bytes_ex(50, true, true); |
645 | $rnd = random_bytes_ex(50, true, true); |
Line 688... | Line 689... | ||
688 | 'algo' => 'sha3-256', |
689 | 'algo' => 'sha3-256', |
689 | 'mode' => 'pbkdf2', |
690 | 'mode' => 'pbkdf2', |
690 | 'iterations' => 0 |
691 | 'iterations' => 0 |
691 | ))); |
692 | ))); |
692 | 693 | ||
693 | echo "OK, password $password\n"; |
- | |
- | 694 | */ |