"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
import{JWEInvalid}from'../util/errors.ts' exportdefaultfunctioncheckP2s(p2s:Uint8Array){if(!(p2s instanceofUint8Array)|| p2s.length<8){thrownewJWEInvalid('PBES2 Salt Input must be 8 or more octets')}}