Questions tagged [base64]

Base64 is a method for encoding data for transfer over the Internet.

47 questions
219
votes
4 answers

Why does the base64 of a string contain "\n"?

$ echo -n "apfjxkic-omyuobwd339805ak:60a06cd2ddfad610b9490d359d605407" | base64 YXBmanhraWMtb215dW9id2QzMzk4MDVhazo2MGEwNmNkMmRkZmFkNjEwYjk0OTBkMzU5ZDYwNTQw Nw== The output has a return before Nw==. What is the correct way to generate base64 in…
Tiina
  • 3,177
-1
votes
1 answer

Odd Result in base64 decoding

I'm decoding this base64 string : qL0swAhW+7zioxG6CatHBw== I'm getting this result : $echo "qL0swAhW+7zioxG6CatHBw==" |base64 --decode : ��, V���� �G the output supposed to be something in clear text
jppy
  • 1
-2
votes
1 answer

about spaces in base64 encoding/decoding

as it is known that while encoding with base64 encoding method the spaces are skipped but the question is while decoding how they are added back .... ?? consider the following encoding and decoding string to…
Ishrak
  • 1