Why is command line computed base64 string different than curl computed base64 string? Why is command line computed base64 string different than curl computed base64 string? curl curl

Why is command line computed base64 string different than curl computed base64 string?


>>> 'aG9zdEBtYWlsLmNvbTpwYXNzd29yZA=='.decode('base64')'host@mail.com:password'>>> 'aG9zdEBtYWlsLmNvbTpwYXNzd29yZAo='.decode('base64')'host@mail.com:password\n'

Try echo -n instead.