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
Post a Comment