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

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

github - Git errors while pushing -

java - Generating a pre-signed PUT url for Amazon S3 with a maximum content-length -