convert "M" address to "3" address LTC
It's pretty simple, to do this conversion all you need to do is:


decode the address using base58check
change the first byte from 0x32 to 0x5
encode using base58check