mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
3.5 KiB
Plaintext
1 line
3.5 KiB
Plaintext
{"dependencies":[{"name":"../random/asU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":131},"end":{"line":4,"column":48,"index":160}}],"key":"2ZSy5c3i9e+6e3ao+1xxUHMwhTg=","exportNames":["*"],"imports":1}},{"name":"./tweetnacl.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":23,"index":185},"end":{"line":5,"column":48,"index":210}}],"key":"syY+anY7mApUI/b8gV91BzpQysA=","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 asU8a_js_1 = require(_dependencyMap[0], \"../random/asU8a.js\");\n var tweetnacl_js_1 = 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, asU8a_js_1.randomAsU8a)(24);\n return {\n encrypted: (0, tweetnacl_js_1.naclSecretbox)(message, nonce, secret),\n nonce: nonce\n };\n }\n});","lineCount":31,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"naclEncrypt"],[7,21,3,19],[7,24,3,22,"naclEncrypt"],[7,35,3,33],[8,2,4,0],[8,6,4,6,"asU8a_js_1"],[8,16,4,16],[8,19,4,19,"require"],[8,26,4,26],[8,27,4,26,"_dependencyMap"],[8,41,4,26],[8,66,4,47],[8,67,4,48],[9,2,5,0],[9,6,5,6,"tweetnacl_js_1"],[9,20,5,20],[9,23,5,23,"require"],[9,30,5,30],[9,31,5,30,"_dependencyMap"],[9,45,5,30],[9,66,5,47],[9,67,5,48],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,2,20,0],[24,11,20,9,"naclEncrypt"],[24,22,20,20,"naclEncrypt"],[24,23,20,21,"message"],[24,30,20,28],[24,32,20,30,"secret"],[24,38,20,36],[24,40,20,79],[25,4,20,79],[25,8,20,38,"nonce"],[25,13,20,43],[25,16,20,43,"arguments"],[25,25,20,43],[25,26,20,43,"length"],[25,32,20,43],[25,40,20,43,"arguments"],[25,49,20,43],[25,57,20,43,"undefined"],[25,66,20,43],[25,69,20,43,"arguments"],[25,78,20,43],[25,84,20,46],[25,85,20,47],[25,86,20,48],[25,88,20,50,"asU8a_js_1"],[25,98,20,60],[25,99,20,61,"randomAsU8a"],[25,110,20,72],[25,112,20,74],[25,114,20,76],[25,115,20,77],[26,4,21,4],[26,11,21,11],[27,6,22,8,"encrypted"],[27,15,22,17],[27,17,22,19],[27,18,22,20],[27,19,22,21],[27,21,22,23,"tweetnacl_js_1"],[27,35,22,37],[27,36,22,38,"naclSecretbox"],[27,49,22,51],[27,51,22,53,"message"],[27,58,22,60],[27,60,22,62,"nonce"],[27,65,22,67],[27,67,22,69,"secret"],[27,73,22,75],[27,74,22,76],[28,6,23,8,"nonce"],[28,11,23,13],[28,13,23,8,"nonce"],[29,4,24,4],[29,5,24,5],[30,2,25,0],[31,0,25,1],[31,3]],"functionMap":{"names":["<global>","naclEncrypt"],"mappings":"AAA;ACmB;CDK"},"hasCjsExports":true},"type":"js/module"}]} |