On Oct 15, 2015, at 11:29 AM, ajres 
<[email protected]<mailto:[email protected]>> wrote:

I tried using the base64 command on MAC OS X to encode 'crashtest:crashtest' 
but this gave an incompatible encoded string.

If you used ‘echo’ to send the string to the base64 tool, you probably forgot 
to use the -n flag to suppress the trailing newline. (So did I the first time I 
tried it just now…) With -n it outputs the correct value.

$  echo 'crashtest:crashtest' | base64
Y3Jhc2h0ZXN0OmNyYXNodGVzdAo=
$  echo -n 'crashtest:crashtest' | base64
Y3Jhc2h0ZXN0OmNyYXNodGVzdA==

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/48157E72-EB68-41E6-9EE8-011885AD25C6%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to