1 | <?php |
||
5 | trait Util |
||
6 | { |
||
7 | private static function pkcs5Pad(string $text, $blockSize):string |
||
8 | { |
||
9 | $pad = $blockSize - (strlen($text) % $blockSize); |
||
10 | return $text . str_repeat(chr($pad), $pad); |
||
11 | } |
||
12 | |||
13 | private static function getCipher(): array |
||
20 | |||
21 | private static function finalizeCipher($cipher) |
||
26 | } |
||
27 |