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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -