mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
2.8 KiB
Plaintext
1 line
2.8 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, nonce = (0, _randomAsU8aJs.randomAsU8a)(24)) {\n return {\n encrypted: (0, _tweetnaclJs.naclSecretbox)(message, nonce, secret),\n nonce\n };\n }\n});","lineCount":30,"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,45,"nonce"],[24,45,17,50],[24,48,17,53],[24,52,17,53,"randomAsU8a"],[24,66,17,64],[24,67,17,64,"randomAsU8a"],[24,78,17,64],[24,80,17,65],[24,82,17,67],[24,83,17,68],[24,85,17,70],[25,4,18,4],[25,11,18,11],[26,6,19,8,"encrypted"],[26,15,19,17],[26,17,19,19],[26,21,19,19,"naclSecretbox"],[26,33,19,32],[26,34,19,32,"naclSecretbox"],[26,47,19,32],[26,49,19,33,"message"],[26,56,19,40],[26,58,19,42,"nonce"],[26,63,19,47],[26,65,19,49,"secret"],[26,71,19,55],[26,72,19,56],[27,6,20,8,"nonce"],[28,4,21,4],[28,5,21,5],[29,2,22,0],[30,0,22,1],[30,3]],"functionMap":{"names":["<global>","naclEncrypt"],"mappings":"AAA;OCgB;CDK"},"hasCjsExports":false},"type":"js/module"}]} |