gobyexample/examples/base64-encoding/base64-encoding.sh
2019-10-11 13:25:59 +03:00

10 lines
405 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Строка кодируется в слегка отличающиеся значения с
# помощью стандартных и URL-совместимые base64 (`+` vs `-`),
# но они оба декодируются в исходную строку по желанию.
$ go run base64-encoding.go
YWJjMTIzIT8kKiYoKSctPUB+
abc123!?$*&()'-=@~
YWJjMTIzIT8kKiYoKSctPUB-
abc123!?$*&()'-=@~