下面的代码正在使用 SHA-256 方法对字符串进行哈希处理
const msgUint8 = new TextEncoder().encode(ID);
const hashBuffer = await crypto.subtle.digest('SHA-256', msgUint8);
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
我是加密和解密的新手,需要对上面的 SHA-256 片段进行反向操作,如果我提供 hashHex 值需要获取 ID 值