@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 237 B
JavaScript
const e=new TextEncoder;function t(t){let n=t.data??t.rawData,r=t.symbology,i=`${n.length>64?n.substring(0,64):n}|${r}`,a=e.encode(i),o=``;for(let e of a)o+=String.fromCodePoint(e);return btoa(o).replace(/=+$/,`_`)}export{t as hashedId};