c++ - base64 encode string from a terminal? -


os x 10.8.3 c++

we have base64 encode , decode functions in our code.

however, want base64 encode string terminal , use in code our functions can decode when needs used.

how 1 base64 encode string terminal?

using base64 command, sensibly enough:

# echo hello | base64 sgvsbg8k # echo sgvsbg8k | base64 -d hello 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -