UUencoding (Unix-to-Unix encoding) binary-to-text encoding developed by Mary Ann Horton at UC Berkeley in 1980. Encodes 3 bytes into 4 characters using printable ASCII characters with space (0x20) offset. Widely used in early email and UUCP systems.
| Property | Value |
|---|---|
| Category | Encoding Schemes |
| Sub-category | Binary-to-Text |
| Security status | π Educational Only |
| Complexity | Beginner |
| Inventor | Mary Ann Horton |
| Year | 1980 |
| Origin | πΊπΈ United States |
| Source | algorithms/encoding/uuencode.js |
Status: π Educational Only
No vulnerabilities are recorded for this implementation.
7 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β UUencode empty string test
| Field | Value |
|---|---|
input |
(empty) |
expected |
(empty) |
Vector 2 β UUencode single zero byte test
| Field | Value |
|---|---|
input |
00 |
expected |
2020 |
Vector 3 β UUencode single character βMβ test
| Field | Value |
|---|---|
input |
4d |
expected |
3330 |
Vector 4 β UUencode two character βMaβ test
| Field | Value |
|---|---|
input |
4d61 |
expected |
333624 |
Vector 5 β UUencode three character βManβ test
| Field | Value |
|---|---|
input |
4d616e |
expected |
3336254e |
| Field | Value |
|---|---|
input |
54657374 |
expected |
352635533d20 |
| Field | Value |
|---|---|
input |
61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 61616161616161616161616161616161 |
expected |
38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 38362541383625413836254138362541 3836254138362541383624 |