fromHex

Parse a hex string (40 chars → SHA-1, 64 → SHA-256).