UNPKG

1.1 kBSource Map (JSON)View Raw
1{"version":3,"file":"Crypto.types.js","sourceRoot":"","sources":["../src/Crypto.types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAgBX;AAhBD,WAAY,qBAAqB;IAC/B;;;OAGG;IACH,uCAAc,CAAA;IACd,2CAAkB,CAAA;IAClB,2CAAkB,CAAA;IAClB,2CAAkB,CAAA;IAClB;;;OAGG;IACH,oCAAW,CAAA;IACX,oCAAW,CAAA;IACX,oCAAW,CAAA;AACb,CAAC,EAhBW,qBAAqB,KAArB,qBAAqB,QAgBhC;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AACnB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB","sourcesContent":["export enum CryptoDigestAlgorithm {\n /**\n * SHA1 is vulnerable and should not be used.\n * https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#SHA-1\n */\n SHA1 = 'SHA-1',\n SHA256 = 'SHA-256',\n SHA384 = 'SHA-384',\n SHA512 = 'SHA-512',\n /**\n * MD* is not supported on web.\n * message-digest algorithms shouldn't be used for creating secure digests.\n */\n MD2 = 'MD2',\n MD4 = 'MD4',\n MD5 = 'MD5',\n}\n\nexport enum CryptoEncoding {\n HEX = 'hex',\n BASE64 = 'base64',\n}\n\nexport type CryptoDigestOptions = { encoding: CryptoEncoding };\n\nexport type Digest = string;\n"]}
\No newline at end of file