crypt a string : crypt « String « Ruby






crypt a string


coded = "hfCghHIE5LAM."

password = 'bf'

puts password.crypt("hf")

if password.crypt("hf") == coded
  puts "Welcome!"
else
  puts "What are you, an orc?"
end

 








Related examples in the same category