issues
search
smart-on-fhir
/
smart-health-card-decoder
Sample code for a SMART Health Card validator
MIT License
3
stars
2
forks
source link
rework crypto.ts
#1
Closed
ljoy913
closed
2 years ago
ljoy913
commented
2 years ago
Updated crypto for Node and browser use:
When running in Node >= 15, Node's web crypto api will be used for signature verification.
When running in Node <= 14, Node's crypto lib will be used (web crypto is not available)
When running in Browser, the built-in web crypto api will be used.
When running in a browser without the web crypto api, a web crypto polyfill will be used.
Updated crypto for Node and browser use: