计算数据的 SHA-1 哈希值。
需要计算哈希的数据,可以是字符串或 BufferSource。
返回十六进制格式的哈希字符串。
const hash = await sha1('Hello, World!');console.log(hash); // 十六进制哈希字符串 Copy
const hash = await sha1('Hello, World!');console.log(hash); // 十六进制哈希字符串
计算数据的 SHA-1 哈希值。