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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -