Added command line mode to calculate both text SHA1 and file SHA1 function