For base64 encoding/decoding, can base64 and uuencode/uudecode be used exchangeably?
up vote
-4
down vote
favorite
Do both base64
(from coreutils) and uuencode -m
and uudecode
(from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?
base64
New contributor
|
show 2 more comments
up vote
-4
down vote
favorite
Do both base64
(from coreutils) and uuencode -m
and uudecode
(from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?
base64
New contributor
2
Tryman uuencode
, which will demonstrate that they're not synonymous.
– Thomas Dickey
Nov 21 at 0:47
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
2
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35
|
show 2 more comments
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
Do both base64
(from coreutils) and uuencode -m
and uudecode
(from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?
base64
New contributor
Do both base64
(from coreutils) and uuencode -m
and uudecode
(from sharutils) implement base64 encoding and decoding? Can they be used exchangeably?
base64
base64
New contributor
New contributor
New contributor
asked Nov 21 at 0:08
Ben
2788
2788
New contributor
New contributor
2
Tryman uuencode
, which will demonstrate that they're not synonymous.
– Thomas Dickey
Nov 21 at 0:47
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
2
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35
|
show 2 more comments
2
Tryman uuencode
, which will demonstrate that they're not synonymous.
– Thomas Dickey
Nov 21 at 0:47
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
2
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35
2
2
Try
man uuencode
, which will demonstrate that they're not synonymous.– Thomas Dickey
Nov 21 at 0:47
Try
man uuencode
, which will demonstrate that they're not synonymous.– Thomas Dickey
Nov 21 at 0:47
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
2
2
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
Except for the header and tail that uuencode adds to its output, yes:
$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====
$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK
But uuencode
is specified by posix, base64 no.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Except for the header and tail that uuencode adds to its output, yes:
$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====
$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK
But uuencode
is specified by posix, base64 no.
add a comment |
up vote
1
down vote
Except for the header and tail that uuencode adds to its output, yes:
$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====
$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK
But uuencode
is specified by posix, base64 no.
add a comment |
up vote
1
down vote
up vote
1
down vote
Except for the header and tail that uuencode adds to its output, yes:
$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====
$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK
But uuencode
is specified by posix, base64 no.
Except for the header and tail that uuencode adds to its output, yes:
$ uuencode -m - <<<"Hello World! test"
begin-base64 644 -
SGVsbG8gV29ybGQhIHRlc3QK
====
$ base64 <<<"Hello World! test"
SGVsbG8gV29ybGQhIHRlc3QK
But uuencode
is specified by posix, base64 no.
answered Nov 21 at 4:42
Isaac
9,70311445
9,70311445
add a comment |
add a comment |
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483088%2ffor-base64-encoding-decoding-can-base64-and-uuencode-uudecode-be-used-exchangea%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Try
man uuencode
, which will demonstrate that they're not synonymous.– Thomas Dickey
Nov 21 at 0:47
I can't figure out if they are exchangeable as far as base64 encoding/decoding is concerned.
– Ben
Nov 21 at 0:52
There are (at least) two different mappings for base64. You'd have to read the source-code to be certain that they're the same.
– Thomas Dickey
Nov 21 at 1:12
"different mappings for base64", for example?
– Ben
Nov 21 at 1:27
2
RFC 3548 and RFC 4648.
– Thomas Dickey
Nov 21 at 1:35