📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-30 16:18:50
📂
/ (Root)
/
home
/
orkouolp
/
nodevenv
/
node_js
/
orkofarms.com
/
18
/
lib
/
node_modules
/
jose
/
dist
/
browser
/
runtime
📍 /home/orkouolp/nodevenv/node_js/orkofarms.com/18/lib/node_modules/jose/dist/browser/runtime
🔄 Refresh
✏️
Editing: verify.js
Writable
import subtleAlgorithm from './subtle_dsa.js'; import crypto from './webcrypto.js'; import checkKeyLength from './check_key_length.js'; import getVerifyKey from './get_sign_verify_key.js'; const verify = async (alg, key, signature, data) => { const cryptoKey = await getVerifyKey(alg, key, 'verify'); checkKeyLength(alg, cryptoKey); const algorithm = subtleAlgorithm(alg, cryptoKey.algorithm); try { return await crypto.subtle.verify(algorithm, cryptoKey, signature, data); } catch (_a) { return false; } }; export default verify;
💾 Save Changes
❌ Cancel