ruby - String manipulation using MD5 in rails 3 -


i have big string

approx 4000 characters 

i want encrypt , decypt using md5 because of want convert in small string please me lot of finding found base64 not our solution please 1 me

my_string="abcdefghhhhhhhhhhhhhhhhhhhhhh"       base64.encode64(my_string) 

it gives lengthy string.

encrypting string not make smaller, @ best same length. think looking way compress string. aside, md5 one-way hashing algorithm, means designed, there way of recovering source string (it turns out designed rather poorly).


Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -