Last active
November 6, 2018 23:20
-
-
Save worldofprasanna/d028eb22417f998c0d3e5456787f4551 to your computer and use it in GitHub Desktop.
Base64 Encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plainText := "Hello World" | |
plainTextBytes := []byte(plainText) | |
cipherText := base64.StdEncoding.EncodeToString(plainTextBytes) | |
fmt.Println(cipherText) | |
// Output: SGVsbG8gV29ybGQ= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment