mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-28 15:57:55 +00:00
1 line
3.1 KiB
Plaintext
1 line
3.1 KiB
Plaintext
{"dependencies":[{"name":"../random/asU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}}],"key":"DR9r1yI+D4jLXJldkJI9Dep2GwI=","exportNames":["*"],"imports":1}},{"name":"./tweetnacl.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":50},"end":{"line":2,"column":47,"index":97}}],"key":"bEu8dH22MNHmBrCTi/dmqh7v3ZY=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.naclEncrypt = naclEncrypt;\n var _randomAsU8aJs = require(_dependencyMap[0], \"../random/asU8a.js\");\n var _tweetnaclJs = require(_dependencyMap[1], \"./tweetnacl.js\");\n /**\n * @name naclEncrypt\n * @summary Encrypts a message using the supplied secretKey and nonce\n * @description\n * Returns an encrypted message, using the `secretKey` and `nonce`. If the `nonce` was not supplied, a random value is generated.\n * @example\n * <BR>\n *\n * ```javascript\n * import { naclEncrypt } from '@polkadot/util-crypto';\n *\n * naclEncrypt([...], [...]); // => [...]\n * ```\n */\n function naclEncrypt(message, secret) {\n var nonce = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0, _randomAsU8aJs.randomAsU8a)(24);\n return {\n encrypted: (0, _tweetnaclJs.naclSecretbox)(message, nonce, secret),\n nonce: nonce\n };\n }\n});","lineCount":31,"map":[[7,2,17,0,"exports"],[7,9,17,0],[7,10,17,0,"naclEncrypt"],[7,21,17,0],[7,24,17,0,"naclEncrypt"],[7,35,17,0],[8,2,1,0],[8,6,1,0,"_randomAsU8aJs"],[8,20,1,0],[8,23,1,0,"require"],[8,30,1,0],[8,31,1,0,"_dependencyMap"],[8,45,1,0],[9,2,2,0],[9,6,2,0,"_tweetnaclJs"],[9,18,2,0],[9,21,2,0,"require"],[9,28,2,0],[9,29,2,0,"_dependencyMap"],[9,43,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,2,17,7],[24,11,17,16,"naclEncrypt"],[24,22,17,27,"naclEncrypt"],[24,23,17,28,"message"],[24,30,17,35],[24,32,17,37,"secret"],[24,38,17,43],[24,40,17,70],[25,4,17,70],[25,8,17,45,"nonce"],[25,13,17,50],[25,16,17,50,"arguments"],[25,25,17,50],[25,26,17,50,"length"],[25,32,17,50],[25,40,17,50,"arguments"],[25,49,17,50],[25,57,17,50,"undefined"],[25,66,17,50],[25,69,17,50,"arguments"],[25,78,17,50],[25,84,17,53],[25,88,17,53,"randomAsU8a"],[25,102,17,64],[25,103,17,64,"randomAsU8a"],[25,114,17,64],[25,116,17,65],[25,118,17,67],[25,119,17,68],[26,4,18,4],[26,11,18,11],[27,6,19,8,"encrypted"],[27,15,19,17],[27,17,19,19],[27,21,19,19,"naclSecretbox"],[27,33,19,32],[27,34,19,32,"naclSecretbox"],[27,47,19,32],[27,49,19,33,"message"],[27,56,19,40],[27,58,19,42,"nonce"],[27,63,19,47],[27,65,19,49,"secret"],[27,71,19,55],[27,72,19,56],[28,6,20,8,"nonce"],[28,11,20,13],[28,13,20,8,"nonce"],[29,4,21,4],[29,5,21,5],[30,2,22,0],[31,0,22,1],[31,3]],"functionMap":{"names":["<global>","naclEncrypt"],"mappings":"AAA;OCgB;CDK"},"hasCjsExports":false},"type":"js/module"}]} |