use web crypto API (chrome 36+) for SHA1 hashing