1 | <?php |
||
12 | class Convert |
||
13 | { |
||
14 | /** |
||
15 | * @param string $data |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | public static function base64uEncode($data) |
||
23 | |||
24 | /** |
||
25 | * @param string $data |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public static function base64uDecode($data) |
||
33 | |||
34 | /** |
||
35 | * Convert the public key to binary DER format first |
||
36 | * Using the ECC SubjectPublicKeyInfo OIDs from RFC 5480 |
||
37 | * |
||
38 | * @param string $key |
||
39 | * |
||
40 | * @return null|string |
||
41 | */ |
||
42 | public static function pubkeyToPem($key) |
||
68 | } |
||
69 |