add sha1 to string ops

Please find my impl towards adding sha1. There are some other changes fixing mixed tab and space issues. I have resolved them to use only spaces. Others are pre-configured by Eclipse. (I hope this is fine  - though might as well lead to chaos with each running in their own direction). 

Okay, I'm rambling. :)