I need to configure Site to Site VPN md5, as it did.
This link gives points to a sample scenario and config very similar to your requirement.
You can configure the Site-to-Site as long as the 1700 supports it (if running the appropiate IOS).
Md5 is the hash algorithm that can be used in phase 1 and phase 2 of the configuration, ie.
crypto isakmp polic 10
crypto ipsec transform-set myset esp-3des esp-md5-hmac