omnet
aien-dev/omnet
Brought by drakestapleton
omnet / om / codec / test / vectors / rfc4648.txt
| 1 | # RFC 4648 section 10 test vectors, the BASE64, BASE32 and BASE16 lines copied verbatim. |
| 2 | # Source: https://www.rfc-editor.org/rfc/rfc4648.txt, fetched 2026-10-25, |
| 3 | # sha256 84e14418f795d503be5f34bf23ce4ebaa119e9ec7c9f667d8caeb111385b178f (lines 652-713). |
| 4 | # Copyright (C) The Internet Society (2006); section 10 is under the RFC section 15 copying |
| 5 | # conditions (Copyright (c) 2000-2006 Simon Josefsson). Notices: rfc4648.NOTICE. |
| 6 | BASE64("") = "" |
| 7 | BASE64("f") = "Zg==" |
| 8 | BASE64("fo") = "Zm8=" |
| 9 | BASE64("foo") = "Zm9v" |
| 10 | BASE64("foob") = "Zm9vYg==" |
| 11 | BASE64("fooba") = "Zm9vYmE=" |
| 12 | BASE64("foobar") = "Zm9vYmFy" |
| 13 | BASE32("") = "" |
| 14 | BASE32("f") = "MY======" |
| 15 | BASE32("fo") = "MZXQ====" |
| 16 | BASE32("foo") = "MZXW6===" |
| 17 | BASE32("foob") = "MZXW6YQ=" |
| 18 | BASE32("fooba") = "MZXW6YTB" |
| 19 | BASE32("foobar") = "MZXW6YTBOI======" |
| 20 | BASE16("") = "" |
| 21 | BASE16("f") = "66" |
| 22 | BASE16("fo") = "666F" |
| 23 | BASE16("foo") = "666F6F" |
| 24 | BASE16("foob") = "666F6F62" |
| 25 | BASE16("fooba") = "666F6F6261" |
| 26 | BASE16("foobar") = "666F6F626172" |