Switched algorithm to sha256