Encoding in Decoding in Rails

Base64.encode64(“Selva”) => “U2VsdmE=\n”

Base64.decode64(“U2VsdmE=\n”) => “Selva”

Advertisements