ruby - Print a string in a cryptic manner, the string is invisible in the code -


how can print secret string "secret foo string" using ruby code, without having string in code itself? when runs code, print out string surprise.

preferably in 1 line of code, in return statement.

thanks :)

i mean, base64 encode string first, , return decoded version:

require "base64" /* ... */ return base64.decode64("u2vjcmv0igzvbybzdhjpbmc=") 

Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -