removed sha-1 code as it is less secure. Will concentrate on sha-256