RSA-OAEP 加密支持的 SHA 哈希算法。
1.6.0
import { importPublicKey, type SHA } from 'minigame-std';const hash: SHA = 'SHA-256';const publicKey = (await importPublicKey(pemString, hash)).unwrap(); Copy
import { importPublicKey, type SHA } from 'minigame-std';const hash: SHA = 'SHA-256';const publicKey = (await importPublicKey(pemString, hash)).unwrap();
RSA-OAEP 加密支持的 SHA 哈希算法。