how to make all letters in the string capital?

ruby

Solution

Try upcase:

@encrypted_str = Digest::MD5.hexdigest("1a2b3c").upcase

Problem

I have a string from MD5 that looks like this: ``` @encrypted_str = Digest::MD5.hexdigest("1a2b3c").capitalize =>Bf4ab447496f2d3d5a6c77c2cd12f996 ``` but this .capitalize is making capital only first letter B advice me please how to capitalize all letters in this MD5 result

Original source