{"_id":"virgil-sdk","_rev":"103-d9dd243e461043fc3c5adacbbc02f2a8","name":"virgil-sdk","dist-tags":{"beta":"4.0.0-beta.5","next":"6.0.0-alpha.6","latest":"6.2.0"},"versions":{"1.0.4":{"name":"virgil-sdk","version":"1.0.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.4","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"d8336ee89d4fbda397154f23fcdceeb3c18935d0","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.4.tgz","integrity":"sha512-gkbe95Q1jFu9X7S+gum0wZobDmgtM3tG4meReLCciEHsXSJhO2q61zxpL5X1Swg5uExHADIjAQEpb1PoBSiMeQ==","signatures":[{"sig":"MEQCID2V1hN3HSH8klhcTZDg7ajhD62uF7OsmVBv7HKEUwEXAiBTQi0H6dKCBwQCY7p//xskdAncDMhZNtzCPZs+mCiG9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d8336ee89d4fbda397154f23fcdceeb3c18935d0","browser":"dist/virgil-sdk.min.js","gitHead":"744bbc85b5cb15ea879083d4fb94227b0709284a","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.2","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.1.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.5":{"name":"virgil-sdk","version":"1.0.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"07fc5c3870438ea7eed0113c8e8103f1aa704f36","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.5.tgz","integrity":"sha512-BZcC/ZDfEgogWid4JDsCSPf6J8l5UQ8x0vBDJ4Vw9jhs7oW/gz5jIQkZ0YBp9skHmwO8qdIFJIRP/QTOLb1Bzg==","signatures":[{"sig":"MEQCIDs/+2sXg3gvZJaI4Hjwk0MWPVZTLLqZ5R3ms+2GCWOlAiAUTxHJwEkxUC7nX6nYeeoXcu19hgL/vcwBLAP3KpzR8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"07fc5c3870438ea7eed0113c8e8103f1aa704f36","browser":"dist/virgil-sdk.min.js","gitHead":"492cd1fd433bfe54164309c8cb2fcacde404eef2","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"2.11.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"0.12.7","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.1.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.6":{"name":"virgil-sdk","version":"1.0.6","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.6","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"e07b7dfd62442147cb81ac83fe08eb7216186a77","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.6.tgz","integrity":"sha512-MdlUpotX9cfUUfSPwxngCJtv241hB0QxpA1XlPpZEG+6gwJkLuJhyrb7R5T+qbFI5KA+r4yQfV36T2CFt992Vw==","signatures":[{"sig":"MEYCIQCcBTUir5OyV9YIB1T2grWyku9t8FQUBGS+wRjm1/ZaFAIhAIabSzZORFM4lNuhPwg+cTOcBfLXG6LCYqfB1f+hFlIY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e07b7dfd62442147cb81ac83fe08eb7216186a77","browser":"dist/virgil-sdk.min.js","gitHead":"3f54c426e1bd46f8f621cf70916074b40f07f72a","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.2","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.1.6"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.7":{"name":"virgil-sdk","version":"1.0.7","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.7","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"76824be5f4dc00cf920e7cd9dabe4d6350487681","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.7.tgz","integrity":"sha512-O8tPcMdNNjCQ2kplQr5ki1VfzPoJnCb2rZUw67/u83cT4zkP6pUtxt6tE7WNEPC04RoOAyS415O2iiNArqoUuw==","signatures":[{"sig":"MEUCIQD2APLiFA4rZU45/Yqjl4/zhsHzCJJU7qHK1ftCKj+f8AIgCVstjdCJ3Z8QA6FG+4TYaOSOS50Y24aZisYQBEFBMO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"76824be5f4dc00cf920e7cd9dabe4d6350487681","browser":"dist/virgil-sdk.min.js","gitHead":"bd61460e0f917d302775f4e5c533bff34e0b0baa","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.1.7"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.8":{"name":"virgil-sdk","version":"1.0.8","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.8","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"e441592c70f7d13c692c8e21b81c0caca5052f74","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.8.tgz","integrity":"sha512-nCzMN6j/NXKN0pZAL6B0je92qcO5U1TOgi9FAS1BiHBKOgIgMLD3S9tm09/iwgOZviixkmenWmHSc5rfgmAXuA==","signatures":[{"sig":"MEUCIQCH93Ck79r+s/lUk5vjs1GQ8/o6vhamXm17UrP8sFCtwwIgJ7ryJ9dRDCMYyLYK1WagiGE3v3GO2EUdv+7YLKxDLWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e441592c70f7d13c692c8e21b81c0caca5052f74","browser":"dist/virgil-sdk.min.js","gitHead":"e27e31c76cd2d7d2ccddca17b02d9a3f5b9c1e4a","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.1.7"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.9":{"name":"virgil-sdk","version":"1.0.9","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.9","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"527f220b8ab28d45e79cfad0d82b913d7dfef7f0","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.9.tgz","integrity":"sha512-pAYc59HNTohf41d4/eNGFMUbk/HNYoUwTggZ0ebrbGtP1bevU27eLTSUC9SC+z0Lv4u4cyrNO8bgEki8bEvgIQ==","signatures":[{"sig":"MEUCIGtavEAbVLFPz0ln9IaUnaKLdD3SPiXehzrmjGb0aVwQAiEAh25yMnWGHHPHTKmemM1tF/lg6z/fm1iwx8JlWtmGYZM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"527f220b8ab28d45e79cfad0d82b913d7dfef7f0","browser":"dist/virgil-sdk.min.js","gitHead":"c5248d202a22203ab6df09c542df5c780d533adf","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.2","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.10":{"name":"virgil-sdk","version":"1.0.10","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.10","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"98023c4cbb165cfb94581469d7806c6b1af0d774","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.10.tgz","integrity":"sha512-1k5DQZ3ILnDwsjjQCzD0HOepPb4KwWUsgRINpgc/6ZGgiOjOK7P7TcHNxeyC7nwILGnkN2od6NYkAnNA+KzAsw==","signatures":[{"sig":"MEQCIHzZODgmo4RmOjj8EOT3Y47mLZQyTZs26OOIGGesAiweAiBVh0L3mpcsWDqEBhI3qdp0DEtQrELxfuIbsDWc1nPfXw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"98023c4cbb165cfb94581469d7806c6b1af0d774","browser":"dist/virgil-sdk.min.js","gitHead":"a2063c3dfd8d87fed3eff223d385ed7052171da9","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"0.10.40","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"}},"1.0.11":{"name":"virgil-sdk","version":"1.0.11","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.11","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"d765392f22a378ef6f8b7ecaabf25dedc1318229","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.11.tgz","integrity":"sha512-+MC+a4Yhip8XZV/fEcJFJsW6m3dK1Wmfk6OYTjdmFupG1v1W0qTT9WFeCFSXM5sHc20mWLS8Gp4KSBHrA7pOxA==","signatures":[{"sig":"MEUCIDNHTOM1VF1whCpk12MHV7WJMwQvQFHWtTR4P5rJQTFCAiEAsVLllURGUYjxV8P9CFO36N6zqwShqBH9oWA7DZvB9gM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d765392f22a378ef6f8b7ecaabf25dedc1318229","browser":"dist/virgil-sdk.min.js","gitHead":"5f13b339ea394f50bd162a86d63a0e25e82e47ea","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.2","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.3"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.0.11.tgz_1454774847518_0.5040933163836598","host":"packages-9-west.internal.npmjs.com"}},"1.0.12":{"name":"virgil-sdk","version":"1.0.12","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.0.12","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"86ad9622e0dfddedb393760929515a88e5796a36","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.0.12.tgz","integrity":"sha512-x1xnz/cCNhYRW44hr+3f9e+OqpEnE2TNqo1QSo7C8y2n3K7HKKaAXtl+yZ7bMjslnLgkKIN6S8xdo30P8PO4lQ==","signatures":[{"sig":"MEQCIGadPO0zvChJsRrCTQkNNbLj53CTJC1W/+HVEdFDOqOzAiBWPEZG7PUs/J5w/ApgPLk1CgV1rc/lmA7UNHLMcHvEqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"86ad9622e0dfddedb393760929515a88e5796a36","browser":"dist/virgil-sdk.min.js","gitHead":"cd32632e866a3b61081da7da84ea54ee17e959be","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.2","dependencies":{"apiapi":"^1.6.1","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.2.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.0.12.tgz_1455222026714_0.7639619540423155","host":"packages-6-west.internal.npmjs.com"}},"1.1.0":{"name":"virgil-sdk","version":"1.1.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"414bd494ec709c28af02b6ba7f31724975a9b29f","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.0.tgz","integrity":"sha512-zxiFh0fIehfLRp/ZkEO/007paLassAkFvTyAD5FmXBjKziICgmueiM+DMGy/M7AEogHGOIqZ//F0tvt5uk1OYw==","signatures":[{"sig":"MEYCIQCchj4Ui9OH0mxVczCQGU3Lx53sibIdvQbQp7tucN4zVgIhANlXwdL+ud+OG2UVUtur1EXkhidaA8w0wft2ZAhc/c59","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"414bd494ec709c28af02b6ba7f31724975a9b29f","browser":"dist/virgil-sdk.min.js","gitHead":"3a6781348175c4a8e34c8281f9876558ecc82937","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.0.tgz_1456072406864_0.7038194113411009","host":"packages-6-west.internal.npmjs.com"}},"1.1.1":{"name":"virgil-sdk","version":"1.1.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"353caf8e68d0a871c933b114dcfdfc4f3356a2c2","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.1.tgz","integrity":"sha512-1zyaRDcq0ufc47mfunUGLQ4166wFq0+O6e/zn5V+U2wfSBLJIJL62OWkdFSkQyTtMo0V1FrB/1+gMG8v0MxM9A==","signatures":[{"sig":"MEYCIQDkbi4uE+BiKq5B/8zZjNSpXMftVobmRuKilAzYfB9VtAIhAIrUcsCGyH36dvqstvqanEI7m1BCKYp+GrrKNuX++tas","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"353caf8e68d0a871c933b114dcfdfc4f3356a2c2","browser":"dist/virgil-sdk.min.js","gitHead":"403b9d279224adab4c4f2f5c66d744c4daa8c2e9","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"0.10.40","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.1.tgz_1457883808679_0.13412172114476562","host":"packages-12-west.internal.npmjs.com"}},"1.1.2":{"name":"virgil-sdk","version":"1.1.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"15e4b1b7d04ea8892c5fdc93cf5f3142e006e0f8","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.2.tgz","integrity":"sha512-x/z5Dwwh4rQGzLD76P8edKpPJmtinqnbYj/CO7yGFfqC6sgL0OI82NmtZw4dvRCF3at6M+juWECAElBDcq2Gww==","signatures":[{"sig":"MEMCIGA8YquPTlkej+Tk5PvpwiX+iEhA+luh+49TEFM6Y0oxAh9k2ZcRmh+6Zrcw3isjeHG6lI4/pZQiPDweN3+csA3Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"15e4b1b7d04ea8892c5fdc93cf5f3142e006e0f8","browser":"dist/virgil-sdk.min.js","gitHead":"a60767f6873ec8fb1152e873b8da9254b603c4ff","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.2.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.2.tgz_1458519465135_0.6036909816320986","host":"packages-12-west.internal.npmjs.com"}},"1.1.3":{"name":"virgil-sdk","version":"1.1.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"58c25161b6b0b558f5af17141ac6b94e18578920","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.3.tgz","integrity":"sha512-1Ez6ACIUbZUf1VSHZZqrKH/m7GcGj9l4mAMv75N1n8thDyQWBZZIuYbEPtgf+U/9SMaGrisM8N2rg++Q9a4Thw==","signatures":[{"sig":"MEQCIEFik7MYBLDdBcbqNOvPK64bRsehCYXj5xk+FkSVs+QuAiAVU087O2VqSi1GvQfG7HLAXmexbLlaOMtHLkjJ36TuHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"58c25161b6b0b558f5af17141ac6b94e18578920","browser":"dist/virgil-sdk.min.js","gitHead":"5f1fc6626747b240fab789c5a2abf8b5a089e4b5","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.3.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.3.tgz_1458894797910_0.8419717624783516","host":"packages-12-west.internal.npmjs.com"}},"1.1.4":{"name":"virgil-sdk","version":"1.1.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.4","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"18a89d977afa0249b4c24506c8e751fd308e2b06","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.4.tgz","integrity":"sha512-vaBqgqqKUUkx69wVpUKTj4n9qskq9Q+TLERuXotwGK19R4K5MryTUQtghFcTCmvMYrJAmc66Ftvbx8h29shA+w==","signatures":[{"sig":"MEYCIQDqzafML/+fhxmZwJ5TWS5ck1xuiLm8D9nxLkfngQrHEAIhALaOrATSQt1POqGtOvQ3Bw1dvx/yIWHwQRFLxmD/I4gj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"18a89d977afa0249b4c24506c8e751fd308e2b06","browser":"dist/virgil-sdk.min.js","gitHead":"655604ae8a32d0faeab78c095f034cdd5a336e0d","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.3.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.4.tgz_1459170898217_0.88550561433658","host":"packages-16-east.internal.npmjs.com"}},"1.1.5":{"name":"virgil-sdk","version":"1.1.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"26751b2133ed696af9c4772a6f304787068a7454","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.5.tgz","integrity":"sha512-3lpqhDEa2ax4nEk5tMCvR5mhrSI+smqJ+vye4S3LgQRMs67IV7Olu3iCVdWDSYnNeVHOYBne2tMRq8meLKcsZQ==","signatures":[{"sig":"MEQCIBBFBvWUSmJUL5c3b/YMC3o/R/iYCIHAhvK5xbMfD5PgAiBU55oIQmiWtJDhcMJmYit5mu9z3V0TI0hIq1YafPo1Qw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"26751b2133ed696af9c4772a6f304787068a7454","browser":"dist/virgil-sdk.min.js","gitHead":"48bf6b28bfaa22dea3513aa9ca10f0762414e110","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.3.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.5.tgz_1459177342041_0.22280778991989791","host":"packages-16-east.internal.npmjs.com"}},"1.1.6":{"name":"virgil-sdk","version":"1.1.6","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.1.6","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"9054ebe8656a510a41c8191f9835c2edb1665bee","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.1.6.tgz","integrity":"sha512-xb5ptwPrB8lAXVawB8hdaasMRAsybL5pii2hF4sLs4Qbhq7TnWaSJh2subapP/IRcqaC/ur/3BB6cG4XXmPZzQ==","signatures":[{"sig":"MEUCICcQvdUYDf4daDHmnrpzcfV2PF8Sfw5OFcDirqxJJYw5AiEAsGxB3+GTlqMxvPw/yRjkcwGbytlqy6awDTIzqtoEOOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9054ebe8656a510a41c8191f9835c2edb1665bee","browser":"dist/virgil-sdk.min.js","gitHead":"ad244f9017bbfd5d13e4d80522ad4d49ede623d0","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.3.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.1.6.tgz_1459184414935_0.04206996760331094","host":"packages-16-east.internal.npmjs.com"}},"1.2.0":{"name":"virgil-sdk","version":"1.2.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.2.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"84215d661a7b2b55d36b7529a0c32fcc5dae8d59","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.2.0.tgz","integrity":"sha512-AN90Hx9eIunlDggzQvbhNVWwRtcFU6mXd6BZkavFU3QPIgRtISMKBdpX+CcBdhqwGcSYqenOGiSkIk45jODXqw==","signatures":[{"sig":"MEQCICapPMIXD04Vk2U9TLLYaGsx545rEGrhaGBvgbpZZfIiAiAOJClwnR5Ki0HaCOXYoBh3NQVvmtE5+NCMHT1E47eyFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"84215d661a7b2b55d36b7529a0c32fcc5dae8d59","browser":"dist/virgil-sdk.min.js","gitHead":"b3703e144e8134928fa827e3290ba3de49f70d35","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bowser":"^1.0.0","buffer":"^3.6.0","bluebird":"^2.10.2","es6-error":"^2.0.2","node-uuid":"^1.4.3","operative":"^0.4.4","virgil-crypto":"^1.4.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","webpack":"^1.12.9","bluebird":"^2.10.0","gulp-util":"^3.0.7","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.2.0.tgz_1460561915367_0.794544487958774","host":"packages-16-east.internal.npmjs.com"}},"1.3.0":{"name":"virgil-sdk","version":"1.3.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.3.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"86a2f648018271948c8a9eb804a0be3d0764aa11","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.3.0.tgz","integrity":"sha512-U+KurrcVlelqU7iOOtFOqlrmv1OLdN7nxk1Z/5L7gZVi7Bz3oakosbHHY/JimMZOR3S79bj3O8ImK9PoX6DIvg==","signatures":[{"sig":"MEYCIQDsFpq6RR1JbLQCtAOrXiy85IVziSyu5T+f+DomUgb30wIhAINErwj2vm+KHBud+QNckmTFTCsgiqzCV890DTnVYg7i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"86a2f648018271948c8a9eb804a0be3d0764aa11","browser":"dist/virgil-sdk.min.js","gitHead":"904c2984c6a3e439be278b032477e72e55ef2d9f","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.3.0.tgz_1461928599261_0.8226098357699811","host":"packages-12-west.internal.npmjs.com"}},"1.4.1":{"name":"virgil-sdk","version":"1.4.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"f3061303bb88bce27f7555c1141f5f2f2a6331c0","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.1.tgz","integrity":"sha512-vIYhWvvckH5rfkcvfij6jNufZGAwwHmVJ3Y3dhob/L00OD3hIhwq7NOaS9b0mRuMrbBtBvLeu18oO8dY8FyfWg==","signatures":[{"sig":"MEQCIB1QwRfv0uBTq0g+lGXmk/VyxKtqeTgoSk4DK9CzLrocAiBxmA9TZH31jvYOpYzer8a3Fr3dnzd+eLH24YchJ3zQlw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f3061303bb88bce27f7555c1141f5f2f2a6331c0","browser":"dist/virgil-sdk.min.js","gitHead":"2f734af9ff3ed445855ad30c90e2f9101b898849","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.1.tgz_1462278010414_0.34365190495736897","host":"packages-12-west.internal.npmjs.com"}},"1.4.2":{"name":"virgil-sdk","version":"1.4.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"d2937c14470c7f69c9fd0f74fbcbd3e35d4638a2","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.2.tgz","integrity":"sha512-RGnWMTZjDAOI6ohPdg6vd9EUjNmhpjRvcerXMfNTdeu0ZFbWcJKMDi35kr5T8eQUi87EO0iwLIUHhqmwGu8lNg==","signatures":[{"sig":"MEUCIQDDNqvxe8pVMKyMDGCUb1rCENefKNVrLTveOrsnoZPa+gIge5tNVqCrZCCwYkCY8NwA5FmzbqAgzU70kbOhTn2V4Qo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d2937c14470c7f69c9fd0f74fbcbd3e35d4638a2","browser":"dist/virgil-sdk.min.js","gitHead":"bf6f0875bc5a2ccb15655e0f8136755e33c7e53f","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"0.10.40","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.5"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.2.tgz_1462480559703_0.9270362653769553","host":"packages-12-west.internal.npmjs.com"}},"1.4.3":{"name":"virgil-sdk","version":"1.4.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"624978f800fcdc19e77838e88833c0145c5add59","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.3.tgz","integrity":"sha512-fuSKfmeJSzuwbD0EUbMMp/uHexheCF6SF+yRHsXnQh2Xy+knkP5fkRLeL04HUYIqvZ3jQvzYSxTouyu5Tlvodg==","signatures":[{"sig":"MEQCICap4rX3N7LAT4ZqXSMq69ikkERkKPl1GVOTcNpEeT/sAiBidWBd2FRpJuPQUBnx+2p0y4GaBRswzseB4Kr1HNr59w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"624978f800fcdc19e77838e88833c0145c5add59","browser":"dist/virgil-sdk.min.js","gitHead":"16409806d11b43bc9664cd45be44b24642e28c37","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"0.10.40","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.7"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.3.tgz_1462895018582_0.03516555391252041","host":"packages-16-east.internal.npmjs.com"}},"1.4.4":{"name":"virgil-sdk","version":"1.4.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.4","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3301ea1126080c5f5080da7e6195ea0d671a5666","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.4.tgz","integrity":"sha512-PYAIx/Q6eEuo+Ot7ZqPn3FZZ2AGJ80vA2UFtSsEmwY6JDyLcwOI583vO6dt2gP8T5ZUxrLf73KWiwEUy4odjKw==","signatures":[{"sig":"MEQCIEldqtuaZOtMosT8V7xKNbCnoLB8fsUDtgIG1xFYO/lCAiBQMMB2+v4GtTts+9sD0U89outEi9R9npDdUWawYgJaeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3301ea1126080c5f5080da7e6195ea0d671a5666","browser":"dist/virgil-sdk.min.js","gitHead":"618a7560b7a72238196c25f855326e0245cbd85f","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"2.15.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.4.3","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.8"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.4.tgz_1462994681421_0.13086202275007963","host":"packages-16-east.internal.npmjs.com"}},"1.4.5":{"name":"virgil-sdk","version":"1.4.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"f017155a5481c78c41c7cbca12a550d374ef2a68","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.5.tgz","integrity":"sha512-t9QgkBN6ybTsKJinwR8XZKOwVIRxpiyIIplepGvXGbiILh6Npg+/01lsK99q87s1RyvVdyr8QPYTM2941FnaxA==","signatures":[{"sig":"MEUCIA23mFBuuL6O5KtE6Vf1FsduEWilQ/X/DUnMuL5ZG3qKAiEAlQIZD/orpO6+KXa3Zm2rDUENaP5NOQSGIt1kiYSnydQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f017155a5481c78c41c7cbca12a550d374ef2a68","browser":"dist/virgil-sdk.min.js","gitHead":"f8ed90f0317f1ff8843eb7779bb7bc7a60185553","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.9"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.5.tgz_1463583290543_0.2098004601430148","host":"packages-16-east.internal.npmjs.com"}},"1.4.6":{"name":"virgil-sdk","version":"1.4.6","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.6","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"91ed7afb0c3d2d7b54dfc2e403bb2943969c94b5","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.6.tgz","integrity":"sha512-XIhxSVC88Y19fymwOjeQegbJkkh4GkG8Mry1dvPUvdIoUWnhXzqEaAteGQlBVs6GllCjjoteCUu8jSn+qEFqdA==","signatures":[{"sig":"MEYCIQDz5vD3hGHNSQOC/s6iS+XQa6dWgqUGp2DtQD0U0iOLvwIhAMiv6oCmN8GrHGgQGsQnFGi8x2ntEEXmHD6Fogpvb4L+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"91ed7afb0c3d2d7b54dfc2e403bb2943969c94b5","browser":"dist/virgil-sdk.min.js","gitHead":"f6d9e113ad17b585b8d97a263b4313b7ec29fe23","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.9"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.6.tgz_1463817660790_0.15271216537803411","host":"packages-16-east.internal.npmjs.com"}},"1.4.7":{"name":"virgil-sdk","version":"1.4.7","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.4.7","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"0531da7990756cdf36149addbe5dcf34eaccb505","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.4.7.tgz","integrity":"sha512-UaHu+mxXs5qu2G0V3IP2enQWzbvUzdJZrYiCEC5gsJRD94Ow6n2Ivx0IHGzOHiu1gJS66g/eStHquC0NHdoeHg==","signatures":[{"sig":"MEUCIB+QjzQfvg4EQYSlHNtp+T/d+R35OaD3r3Dbhq2Z/7NMAiEAmAAZk1G94AGpmWspf9U5IsOHEscOvXmRSyICQx/7aP8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0531da7990756cdf36149addbe5dcf34eaccb505","browser":"dist/virgil-sdk.min.js","gitHead":"d637cf4f259a879d031aad2364d9d969d911d1aa","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.5.9"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.4.7.tgz_1465227804644_0.9972686583641917","host":"packages-12-west.internal.npmjs.com"}},"1.5.0":{"name":"virgil-sdk","version":"1.5.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.5.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"60e0884926ec08ff0236453de083e33f84c4fc99","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.5.0.tgz","integrity":"sha512-xS1AZkx8a1ekTSvecBn4ULo3HPnGrG10NGU4H3xZLRFVC04/inBgW7vofjpfJyRrA+6WD5t1SXYh7uYMQrQsMw==","signatures":[{"sig":"MEUCIAjd/N8fYOAy/g7TjvcUGcHjHG+bmZizAvmkOYZeBTRnAiEAvoXP1ChZksibFVtLidtLWMR+ciPSyl03kLdP5djIaXA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"60e0884926ec08ff0236453de083e33f84c4fc99","browser":"dist/virgil-sdk.min.js","gitHead":"8af6d879b64e77f6bf65650921d1a98190d09bbb","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.0","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.6.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.5.0.tgz_1465650229319_0.48114011995494366","host":"packages-12-west.internal.npmjs.com"}},"1.6.0":{"name":"virgil-sdk","version":"1.6.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.6.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"f70f700b7bf4eff3b3aeaaa7e34d84c7dae6d524","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.6.0.tgz","integrity":"sha512-+/JlKylbIHIrG2BcelEMnIUMm2rnjfKFwYAn6KYchPRKiDL0Ae0GfTlyYShnQFQFV4uNdcDqhEchPnSOcRa+jA==","signatures":[{"sig":"MEUCIDRtHSmZ+jC3qafwbxEFDkew/TSiA5cGvWgF1z/TmXdYAiEA6DvkWr2AxqEzkyvCayJfeUkXikqWMpZu2cUGED7EvRs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f70f700b7bf4eff3b3aeaaa7e34d84c7dae6d524","browser":"dist/virgil-sdk.min.js","gitHead":"00ea5a45ce90ef5bf593b9b6c6981af12c352699","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.6.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.6.0.tgz_1467651869998_0.6805583820678294","host":"packages-16-east.internal.npmjs.com"}},"1.6.1":{"name":"virgil-sdk","version":"1.6.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.6.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"dd638771373117e7155054b3b594da20e986d28c","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.6.1.tgz","integrity":"sha512-uC2KrxwG4JM27FYhIyDUXAksRy0HmFV9+/s8AR6IaYu96sYfMnejtf1pRhIAepFuZEYzaDiGGvjWVAziRewJZg==","signatures":[{"sig":"MEUCIQC0Ui5HNYsz+b6/G4YxXl4bh9elSxjBvmzxYknMXc2j1QIgWnPvHOsgty1UbWIRKiYV6NjUXTLlAXCPT1we8HV8sOE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dd638771373117e7155054b3b594da20e986d28c","browser":"dist/virgil-sdk.min.js","gitHead":"c32146a9c5affca0ea9d75953ec8c3f9f1ef838c","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.5.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.0","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.6.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.6.1.tgz_1467723290422_0.4287566931452602","host":"packages-16-east.internal.npmjs.com"}},"4.0.0-beta.0":{"name":"virgil-sdk","version":"4.0.0-beta.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@4.0.0-beta.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3a7edf704b32b5877012103b4d3652bf143e80f2","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.0.tgz","integrity":"sha512-N2f5hm5eXRYlMXLXpve9cAG9o91iHb+UHSK7PbqJOAIIcYIo/FxJXeP3fmCNdwiQyTA3oy5QBmyzYbi4dNqrpA==","signatures":[{"sig":"MEUCIQCQSUWvPsu67lKtZiTLKiqwOI/ur4gy7sN4Ud9gkHtgPgIgEcZCfQd7Jpmeqxq8QytLixjpeBpQpJmqRF/NHo4Zg1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3a7edf704b32b5877012103b4d3652bf143e80f2","browser":"dist/virgil-sdk.min.js","gitHead":"b98d64050de964c7c3b275c398d24c90f205c1c4","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.4","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","lodash":"^4.15.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.0.tgz_1476880215676_0.19187783543020487","host":"packages-12-west.internal.npmjs.com"}},"4.0.0-beta.1":{"name":"virgil-sdk","version":"4.0.0-beta.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0-beta.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"9a7492f0746cda7b43ed220cea14c61d42b2f5a9","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.1.tgz","integrity":"sha512-ScLhroi4Ia1ECL4qdaVmgVjDpEIKxZ9FUBjLAhBnpqHyB0AzX7pas/9aNSSWNuxb/KmyEVWqlYt8ghv/Gi1bYw==","signatures":[{"sig":"MEYCIQCMSk6Nv5NYdiaXndxQbfAY13qRKVx9+YlGiIoCIvTVsgIhAKcUreFPpR4SIrZLm+rkPJJCPMy0ebS08RlmzNfc+51P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9a7492f0746cda7b43ed220cea14c61d42b2f5a9","browser":"dist/virgil-sdk.min.js","gitHead":"17dad9f7df23dfc8f736b3e07523cfec167b498e","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.4","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","lodash":"^4.15.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.1.tgz_1476954623843_0.6091368023771793","host":"packages-18-east.internal.npmjs.com"}},"4.0.0-beta.2":{"name":"virgil-sdk","version":"4.0.0-beta.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0-beta.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"8ae64c05f67a681d27039fb4da2bef1f70726ee8","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.2.tgz","integrity":"sha512-L+SBV0Vbipmpeb59Dfr07wiaZfiLWE0AyrP+IahrgQ/1JOCnlbOuNIni0NTXWnCnpebNC4U8t/y/0bEIADclQw==","signatures":[{"sig":"MEYCIQC9/eAstRhnA++TGVzUnu8wi2/hjuEcHoNF1aoMlmIgKAIhAObaqQpnKsIcbmP6z2GMsZjaZYyWT/P0oBsFaLc75ENd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8ae64c05f67a681d27039fb4da2bef1f70726ee8","browser":"dist/virgil-sdk.min.js","gitHead":"8dd0f7cdaccb6c01e5ef4377d9a87388889d61b0","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.4","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","lodash":"^4.15.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.2.tgz_1477338650159_0.7604332217015326","host":"packages-12-west.internal.npmjs.com"}},"4.0.0-beta.3":{"name":"virgil-sdk","version":"4.0.0-beta.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0-beta.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"a3d8c43355aef0f7fb61db987444dda85fbdf718","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.3.tgz","integrity":"sha512-pZufx0uRUAFj8gAFyur4lftzAJ7B2gURN3grzoQTYKa/2lOGH4d7zsNUHNTbclrOTtRHBCqO24etOhwa4Gv37w==","signatures":[{"sig":"MEUCIF4zgNfCVM6dJY7TvWWNr5PxTAmlPC0uflpf5aUFUcFgAiEAsrNWbVZkngI7kAZ6dgK3umTZFE+mWvYLU8qDISC/MuE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a3d8c43355aef0f7fb61db987444dda85fbdf718","browser":"dist/virgil-sdk.min.js","gitHead":"5ad64b0e2035f0cf77b5395a8c8a454a058a7bb3","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"4.2.4","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.0"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","lodash":"^4.15.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.3.tgz_1477339223016_0.7317176843062043","host":"packages-12-west.internal.npmjs.com"}},"4.0.0-beta.4":{"name":"virgil-sdk","version":"4.0.0-beta.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0-beta.4","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"d5697d8cc5a7dc8d22713ca792b982624507a956","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.4.tgz","integrity":"sha512-ruQ3p2p6I9pxsuemGBkftId5QohR3syJxa71KDDOvhQb7hAbJf0bLDH43cjxrPgEswpeo8jR72q0PXequ02+Ng==","signatures":[{"sig":"MEUCIQCXGw96mLtRJk+oFRW+nSoMS85ekuMx+LY13I2CoIl9wQIgaKhfJikgppoMCgPnjounI1+yjlpoToV6+vgnkawmtf8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d5697d8cc5a7dc8d22713ca792b982624507a956","browser":"dist/virgil-sdk.min.js","gitHead":"c2e5cd51b57f4964ac246f66c02987180d2ce6d4","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.7.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"5.9.1","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","webpack":"^1.12.9","es6-error":"^2.0.2","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.4.tgz_1478178911511_0.8423645978327841","host":"packages-12-west.internal.npmjs.com"}},"4.0.0-beta.5":{"name":"virgil-sdk","version":"4.0.0-beta.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0-beta.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"36d82ab1f4bc2946a71c5e94215838245bdcfc11","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0-beta.5.tgz","integrity":"sha512-ruH2tXwXjbgwenyKeXWC7Zsw4gUfdotRGpoPfkv1UFqYkRi84ZMPXgEPymVp9vllJO69CdmxoFr22KsHZ3z9kQ==","signatures":[{"sig":"MEUCIQDewK1PD212XXns+4yjf84I7SrE0wn3FbPDqpiWMr1UewIgfaYvyDHgAh8L7nNzest0lcZ9Tg8NS+NURaF+O9YNuGk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"36d82ab1f4bc2946a71c5e94215838245bdcfc11","browser":"dist/virgil-sdk.min.js","gitHead":"14c331f1e0cf215e83bd96d71dd2941657273e74","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.7.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"5.9.1","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","virgil-crypto":"^2.0.0-beta.4"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^4.0.0","webpack":"^1.12.9","es6-error":"^2.0.2","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0-beta.5.tgz_1478557194287_0.34566897014155984","host":"packages-18-east.internal.npmjs.com"}},"1.6.2":{"name":"virgil-sdk","version":"1.6.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD","_id":"virgil-sdk@1.6.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"1e7b3a0b19e75e59d82f7579041b656f597c8c60","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-1.6.2.tgz","integrity":"sha512-qTWX69EsveThIn7B48F3OlK14F5G0/rlDEMtex4DzPMo/CkH1m67QWBAyh9ociCnMmv+ZIv+qZoGkfQUeG9/Ig==","signatures":[{"sig":"MEUCIQCZ3PHTVjOwFnyGDwmfJEhhZcG5XT1KUiYK4AaBVHP74gIgXwFO88Ju2ZKRDD7RYc4Q3KEp9hNyvUeuRaEcfJQ4EQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1e7b3a0b19e75e59d82f7579041b656f597c8c60","browser":"dist/virgil-sdk.min.js","gitHead":"cd85d3060e1a09d46a13a823d82842790d457cc1","scripts":{"test":"node tests","build":"gulp build --debug && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.7.3","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"5.9.1","dependencies":{"apiapi":"^1.7.1","bluebird":"^2.10.2","node-uuid":"^1.4.3","virgil-crypto":"^1.6.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","babel":"^5.8.21","yargs":"^3.31.0","bowser":"^1.0.0","buffer":"^3.6.0","webpack":"^1.12.9","bluebird":"^2.10.0","es6-error":"^2.0.2","gulp-util":"^3.0.7","operative":"^0.4.4","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^5.3.2","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","babel-runtime":"^5.8.20","script-loader":"^0.6.1","webpack-stream":"^3.1.0","es6-module-loader":"^0.17.9"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-1.6.2.tgz_1479477674252_0.6947820496279746","host":"packages-18-east.internal.npmjs.com"}},"4.0.0":{"name":"virgil-sdk","version":"4.0.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"cef64d8c8ad0365fe676d08535f0bc7126fddc5a","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.0.tgz","integrity":"sha512-w7JnDTy8+8JE2odxX9N6p6WACguCgX+BqtJM97nhul1g2ht9B5rUs3JFFGIRLgFF2m9DUZ53PvHJ7ek2BBcwrA==","signatures":[{"sig":"MEQCICBoEtMx6Nb2hikIgzu8cXAegU31mMa8w76JFLtSfsJhAiBe4rpIta77ozyFbRyEkTwHDSIAOxllkE74j0gWjqwlxg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cef64d8c8ad0365fe676d08535f0bc7126fddc5a","browser":"dist/virgil-sdk.min.js","gitHead":"0bcb711d3518453337126bdd1caef6887047d014","scripts":{"test":"node tests | faucet","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"apiapi":"^1.7.1","lodash":"^4.17.4","bluebird":"^2.10.2","virgil-crypto":"^2.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","bowser":"^1.0.0","faucet":"0.0.1","webpack":"^1.12.9","operative":"^0.4.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.0.tgz_1485385801043_0.9339462474454194","host":"packages-12-west.internal.npmjs.com"}},"4.0.1":{"name":"virgil-sdk","version":"4.0.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"311c9c9a56edde4341e562606e9599015d412cfc","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.1.tgz","integrity":"sha512-5c9GxxywjHvK14cFu9vrdaiOmTftXssDp+e6WJJG/esvxPm0n9II1NjUXtp7cbGfOeHZ/KtkutkC0m0XwyEmbw==","signatures":[{"sig":"MEUCIFftRVG1X2AeovkXOwERWfDPUZUUMF1Cn4lbj+RxT3a9AiEAgfpvXid0L7QPEUfDMLVn8T28ms34io5MjUEF9QeFkuA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"311c9c9a56edde4341e562606e9599015d412cfc","browser":"dist/virgil-sdk.min.js","gitHead":"36a1fa302aecf4be12064f6737155383525b550e","scripts":{"test":"node -r dotenv/config tests dotenv_config_path=tests/.env | faucet","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"apiapi":"^1.7.1","lodash":"^4.17.4","bluebird":"^2.10.2","virgil-crypto":"^2.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","bowser":"^1.0.0","dotenv":"^4.0.0","faucet":"0.0.1","webpack":"^1.12.9","operative":"^0.4.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.1.tgz_1485444720981_0.10226327343843877","host":"packages-18-east.internal.npmjs.com"}},"4.0.2":{"name":"virgil-sdk","version":"4.0.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.0.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"7a6b1f02323f9a12a9b21d2ada2c3b5134892b83","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.0.2.tgz","integrity":"sha512-WDM6RcbQ66/lYRZIng42oAA4f7B2Ef0Ro+kwnJlCZtb9NgbhGjgf6Lg8yWDCWRQ+3y7zj9GG89EFpx5FNgOdlA==","signatures":[{"sig":"MEQCIGiEYT+n86UjKUF10L9NqV2pkYTaXPhJdhoD/U7QrFmGAiBIrgPyYEml6FqfusjlGcS4C11bcWfLP5fqrASVm+MZvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7a6b1f02323f9a12a9b21d2ada2c3b5134892b83","browser":"dist/virgil-sdk.min.js","gitHead":"75870d832994b0b4489552f6692f99f354ffa831","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env | faucet","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"apiapi":"^1.7.1","lodash":"^4.17.4","bluebird":"^2.10.2","virgil-crypto":"^2.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","bowser":"^1.0.0","dotenv":"^4.0.0","faucet":"0.0.1","webpack":"^1.12.9","operative":"^0.4.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.0.2.tgz_1485455692905_0.14525616448372602","host":"packages-18-east.internal.npmjs.com"}},"4.1.0":{"name":"virgil-sdk","version":"4.1.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"58c7e1599ba846f8dd514b7d2e4d4b96e8f560e3","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.0.tgz","integrity":"sha512-I2ubiTRm+pn7dohK2odNflgV3zegTaCY1QHKQHWTaivpr/AGluoTowoxvnNv/y7Vy8aDYr1jN6CaO0gl0wwrRg==","signatures":[{"sig":"MEUCIEpe65Z25T2osCnWZVezZJUCLQDMvMVSH5LrRmqwOxgmAiEA+W3Tno2sSWHdush96pYimhB5Nqfd2Dn5haQ9TsvgrzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"58c7e1599ba846f8dd514b7d2e4d4b96e8f560e3","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"48e23085dbf697d5dd4b1d87dd310819399c6c60","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.0.tgz_1487867934831_0.12346575316041708","host":"packages-18-east.internal.npmjs.com"}},"4.1.1":{"name":"virgil-sdk","version":"4.1.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"ed6ee791da99493ed9a1aec7ecf179326f90ca37","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.1.tgz","integrity":"sha512-r1fr2sZoS0ERDKhFs0TXCQqsbzHidn7uRuh/dXMszE+KuVkPSP/6tppHxgh1g4a6n/o2VEu80FoYxxX7wNru2A==","signatures":[{"sig":"MEQCIEGwKQhABoP192VuqM/TfNq2eawt62rvKI90Wh8F+3jLAiB7UvcYpcNk8IgU8CW3JQFXoFlbaha+PBvQ7EqsimTKIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ed6ee791da99493ed9a1aec7ecf179326f90ca37","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"aa99e2437b1b9ba03b78d36464eb0d14d88b0320","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.1.tgz_1488191517525_0.511688775382936","host":"packages-18-east.internal.npmjs.com"}},"4.1.2":{"name":"virgil-sdk","version":"4.1.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"8a3010fbe3571816cf9d082f58eb0d79ac1dc0c9","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.2.tgz","integrity":"sha512-1o+uWItUvmfZN1mLZDICSuxUwp0F2EM6FfrX7fTfIYbTE+vWYuEGTri+4q8/wWe/i76AKcuPaQAZdyr81W94gw==","signatures":[{"sig":"MEUCIQD7hGtJ23n5fCTc+4BLExQrqxmXTa5ce27HDAuTqfi+PAIgOsGTrYT16ibLe/jOytA6vq1bODBt2omEs0qkG70HuaU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8a3010fbe3571816cf9d082f58eb0d79ac1dc0c9","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"308695d5fb661f3d609f78979c2f34fa6b5aba9f","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.2.tgz_1488204891234_0.9457059921696782","host":"packages-18-east.internal.npmjs.com"}},"4.1.3":{"name":"virgil-sdk","version":"4.1.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"87470dced3df16572831211f199fdd6a171fa5a0","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.3.tgz","integrity":"sha512-k8ejMzWcj9/2VlktCcNq5CU1tg1x62zkr3T/6X4od6ZvKFi3MdM4Ar+JMWd/0W3sIZOyfnjOGG6Lm6u7PfaebQ==","signatures":[{"sig":"MEYCIQDJx8OfOPrYed7d+OJEFRUI7AWCT+vc5zEgeHL9chyJjwIhAMn+rA14y7BIqMMx5VJY8FbVqazM7SkVAXCGMdsoh3AA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"87470dced3df16572831211f199fdd6a171fa5a0","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"937c4ceb5b2862b9aed04e0dc657532dd8dc4b40","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.3.tgz_1488213444434_0.6605098824948072","host":"packages-12-west.internal.npmjs.com"}},"4.1.4":{"name":"virgil-sdk","version":"4.1.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.4","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"9d862b40f3f090a38d05702081cbf47bf798c212","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.4.tgz","integrity":"sha512-EjbtoDjFq67bVIAki6Ul2qdeMvlFloiFWLDgQsaCD+z2AkALYspgpn2uQMZ4V+aT9J0PnLzad35oRIvUyD3gEA==","signatures":[{"sig":"MEUCIB+km64GZoGfvv7qrt7ycA+h4mwRHGheVZpSKFNJGAoSAiEAgc5VAvahr9mr0e4MvCY0p+yMA6s9CFhPAHjYDUpLkjw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9d862b40f3f090a38d05702081cbf47bf798c212","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"5ed718818e5fc2d3d46c716949f532a8b242f98b","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.4.tgz_1488287609936_0.7014871577266604","host":"packages-18-east.internal.npmjs.com"}},"4.1.5":{"name":"virgil-sdk","version":"4.1.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.1.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"37d38184e4aab5f7d1b8063b7c7318d6758350b8","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.1.5.tgz","integrity":"sha512-jlDitjvI7gNckqLfg//KreY6wkwEJlcEITvoMT5eqsyss4x9VOLP0pXK8wI04lPsb6ljOgQPvOeMVyQn7GEJEA==","signatures":[{"sig":"MEYCIQCQrNWdgBgBhrMa3ck5fVz3bn4ExHyi9273vt4n2m7o7gIhAIWY9My8BcbvllRg7XEUToU8ISuUIsQzR9ieQTZSEB5e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"37d38184e4aab5f7d1b8063b7c7318d6758350b8","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"99ef96044137eecde09963fb1b229d41ec028767","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.1.5.tgz_1488358663312_0.8868848895654082","host":"packages-12-west.internal.npmjs.com"}},"4.2.0":{"name":"virgil-sdk","version":"4.2.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.2.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3b2197db86f5fc686ea442d2d84a9b4ee5918b63","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.2.0.tgz","integrity":"sha512-8N9yVOEyUxN3h1I/h+TzQxraT2OFz7JAZRNbqRJ3DaMdagKPdcYEdLniWYzzsPBRm51ZRxA4DjrorOh7HKllDA==","signatures":[{"sig":"MEUCIQDonAQoqp5iNmaERmOqAC2KTIZ3/aY7S+O4xp8WfOqSGAIgAnG7ojvW+cVPNBacDq4Y8/94EkN4dlmEdq3D6imG7ZE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3b2197db86f5fc686ea442d2d84a9b4ee5918b63","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"1f03c3b3a7902eece87a470da1fdc3ba23be9fa2","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.2.0.tgz_1488448206586_0.9037084553856403","host":"packages-12-west.internal.npmjs.com"}},"4.3.0":{"name":"virgil-sdk","version":"4.3.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.3.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"da19a3274bf319cd572f11105c2520b4d7687e46","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.3.0.tgz","integrity":"sha512-UHUV3PjFKzkNKrmnwL4lL/0J53CVpHb4uFRZyXrY8wZ/e8SXLL9TGRxigCyNcReY4PsvTpA1gt+J1Kr16uFv1g==","signatures":[{"sig":"MEUCIGBC7zuaxG6F8aJZ7hUv/vl/jmuyHwX16ypj+i4yY03wAiEAnD78pv7x7JLFbrFCWMy0Z+w1C/C51BmzMX/D1+iKYdA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"da19a3274bf319cd572f11105c2520b4d7687e46","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"5e3d9bf96dca2468e17aa39abf5e40c7123b2d8c","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.3.0.tgz_1489420060912_0.7145537685137242","host":"packages-12-west.internal.npmjs.com"}},"4.3.1":{"name":"virgil-sdk","version":"4.3.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.3.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"afb1b5789ec5e5642c4a6cb576bd4f14fcd49f39","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.3.1.tgz","integrity":"sha512-C08lwl/okHGua2sirDBYyV9SAwT9aPLtjOMS/udBo631O8VQyMEQGmI1XQaL9P6AstzwUmI5AvVk80jvItXFbQ==","signatures":[{"sig":"MEMCH2y1GBcmEza/2EGJGHTboqAV1HysKr4U5OfK74NsxeoCIDpDkZ8ecxxMpe8fy6UUrXNmpUdB9l01o3w7Dy1oXAYV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"afb1b5789ec5e5642c4a6cb576bd4f14fcd49f39","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"b80b31eb5bd6997b21ac2f268841ea0ad71ca65e","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"^2.0.1","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","mailinator":"^1.0.2","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.3.1.tgz_1489496793843_0.09345629042945802","host":"packages-18-east.internal.npmjs.com"}},"4.4.0":{"name":"virgil-sdk","version":"4.4.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.4.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"b44fed50d3965716cbc34921e368304cb0531b4c","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.4.0.tgz","integrity":"sha512-bcX5HV/atwFVPkgoFYd/F0gVJ6nq6p8M3ssE+po8cDha2Ban9yfj708qsyOcubsysmpYzxdUEpfkSZFt7tq/aA==","signatures":[{"sig":"MEYCIQCdXL292ZP+yORww4lkk4T8vDwY0kaXbFNN5xp4kvuZ9AIhAMZhSAGJYi8mhFtHS38r4TojVujr7Z2B2U6W1VWYwp/P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b44fed50d3965716cbc34921e368304cb0531b4c","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"09679bf524a23966504d270d52df518994950498","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"2.1.0","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.4.0.tgz_1493999880749_0.6805417162831873","host":"packages-12-west.internal.npmjs.com"}},"4.5.0":{"name":"virgil-sdk","version":"4.5.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.5.0","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"df56e4fed735325963056d556afe73bb674f3987","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.5.0.tgz","integrity":"sha512-EphEXFD3+VcMn1KiCGhJJr0UNwsOZ/7HX8/2InmXk7AFrsCAKvDNwtzpHedqqjzVwKKrfZmnLSD1YXc7TTseXA==","signatures":[{"sig":"MEQCIEQFufV0mpQ190PDU9ZAAZQu02Jyaz45vCFSiq9fvnZvAiAK3sJyVMLeMjEAyR/R5AvPQqBsD/ZF34TSjQi+oc4W3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"df56e4fed735325963056d556afe73bb674f3987","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"06cbaf10699775ef1efbf22f7eff799bb35ab731","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","localforage":"^1.4.3","virgil-crypto":"2.1.0","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","is-buffer":"^1.1.4","babel-core":"^6.22.1","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.5.0.tgz_1496178493796_0.16464348998852074","host":"s3://npm-registry-packages"}},"4.5.1":{"name":"virgil-sdk","version":"4.5.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.5.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3e77bb92158ad918dd1cec9a8249be0bf4cf8ca7","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.5.1.tgz","integrity":"sha512-uMYFHs35J+88TWUG4YOjcMZ1YY/DIKjp7pH7ryv9Bl4CgHccnl5V/zR36L9Idt2MGkBWwP8X60pg1N4aTHwEgA==","signatures":[{"sig":"MEUCIGVi38hB6Lj/QkRuYqjl93gtyrbZ2+a8gCf2bw7uaZMrAiEAsb+X4nejYN/K5qbr56uBocD1G2FcbbBdAV3q9M5y4Sc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3e77bb92158ad918dd1cec9a8249be0bf4cf8ca7","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"fafeea007b5a933bb1d5d0d989f12bec5d7d3c2b","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.8","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","is-buffer":"^1.1.4","localforage":"^1.4.3","virgil-crypto":"2.1.0","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","babel-core":"^6.22.1","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.5.1.tgz_1499788688929_0.7513067503459752","host":"s3://npm-registry-packages"}},"4.5.2":{"name":"virgil-sdk","version":"4.5.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.5.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"fa741569144777aec0516cc6b9720c3c3243a1a5","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.5.2.tgz","integrity":"sha512-CsEZzc9lpE+mNFPXIE3k1BKU7O6BIMyaATuRvbOvNaAY9EDCJoRF8RpRlY2zQTrO6nToKCzjkmng10qtT1XwfQ==","signatures":[{"sig":"MEQCIGSDnB1+JvFFtPBQKfoTj/RA/1u//Nc4IC7AxvJwSJzYAiBGA9sE/1oUdy+tR3dl1rHzFRsuDTBYveUcfMvB2gYH/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fa741569144777aec0516cc6b9720c3c3243a1a5","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"367541bcd1f2d94c76e6ecedb3696179b53d17d0","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"3.10.10","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"6.12.0","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","is-buffer":"^1.1.4","localforage":"^1.4.3","virgil-crypto":"^2.1.3","to-arraybuffer":"^1.0.1"},"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","babel-core":"^6.22.1","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk-4.5.2.tgz_1517581016935_0.2589950340334326","host":"s3://npm-registry-packages"}},"4.5.3":{"name":"virgil-sdk","version":"4.5.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@4.5.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"b9dbd9c0dbaf9763c477e9fff86608b3d94cb77f","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-4.5.3.tgz","fileCount":138,"integrity":"sha512-bLHbstqSJHhBrppgUbrXi7hDwf8PZhU6GowFEuH4wtEGR02BI75HdsumRP2hBMJHQaUqj+X1nML4sSP2EUeXuw==","signatures":[{"sig":"MEUCIDGDJf3EDYfcHNL51z6JUyErFsEbAEgE+GCOaDw8ciEVAiEA6Rk8AQSJVM+/4A22hP1I1PzjSLRv14HfxALC/Y1y1AA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5874769},"main":"index.js","browser":{"./":"./dist/virgil-sdk.dev.js","./src/key-storage/index.js":"./src/key-storage/browser.js","./tests/spec/node/file-storage.js":"./tests/spec/browser/localforage-storage.js"},"gitHead":"420d81cabe3a697bc6f92e548d8e3ea34671c071","scripts":{"test":"tape -r dotenv/config tests dotenv_config_path=tests/.env","build":"gulp build --development && gulp build --production"},"_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"5.5.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.9.1","dependencies":{"axios":"^0.15.3","lodash":"^4.17.4","mkdirp":"^0.5.1","is-buffer":"^1.1.4","localforage":"^1.4.3","virgil-crypto":"^2.2.0","to-arraybuffer":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"del":"^1.2.1","gulp":"^3.9.0","tape":"^4.4.0","sinon":"^1.17.7","yargs":"^3.31.0","dotenv":"^4.0.0","faucet":"0.0.1","rimraf":"^2.5.4","webpack":"^1.12.9","bluebird":"^3.4.6","babel-core":"^6.22.1","raw-loader":"^0.5.1","gulp-notify":"^2.2.0","vinyl-named":"^1.1.0","babel-loader":"^6.2.10","gulp-changed":"^1.3.0","gulp-plumber":"^1.0.1","script-loader":"^0.6.1","webpack-stream":"^3.1.0","babel-preset-es2015":"^6.22.0","babel-plugin-transform-runtime":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_4.5.3_1519324352176_0.6081046148066438","host":"s3://npm-registry-packages"}},"5.0.0-alpha.1":{"name":"virgil-sdk","version":"5.0.0-alpha.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-alpha.1","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"e6118f0fe52fbc4c15a19f65416079493226bd63","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-alpha.1.tgz","fileCount":54,"integrity":"sha512-1Z1pC1e2kqWO9iLp+rvGEH9CwCRrWHgRm3cVlaow7k2dfHnWRBL/fCepxk8Ivmo9Lp3pUiQAJ1kN+PHaTQy2hQ==","signatures":[{"sig":"MEYCIQCZN1divp6wdC4JCzU2b1nB36Si0XEXLxQx9PjbCbewmQIhAMXR91gWNSS63LVu1CeSdtFJLjRnZb4TPMqir3xtZBJG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":900089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2bxnCRA9TVsSAnZWagAA8qcQAJReQ5Is+4iRUsFE/GsR\n0DPa+uJre4F6XxbAQKHe/JbjuvaZCo1fb/phP8iIygeKlL5+xNMBfqJSoZC3\nNlFKmpZaQ15DhXRCNXi4vVt2r2LMPaeQ+90wu37GAKHb9J5EkAD/RYwTzSSb\nLZoANcTLXp3FeVA1HeVhTrfWPQjEM06tBQhtc8d5YapqW1lS12I8uV2fsbTP\nvzKpNao0zapXXMz2+ZJVua6dWW2CLW27eeFFuOEn9021VWLCX7vPAB/x2m72\n/ra8pZejQMjPRe3cKskXlLxrruOWY69JNAszZy9ZBugPBstgW/UPEHx9N/rs\nXCqaKF8C8Cc6JnLx/xqhmuqHQgC7CDzr47jecMGFQDJfI9eVL5VMJXYxnn2B\nExX9HpSCW4p3NjKFwd71mqkeZcNNbpo3cNnVFSDt6v9Q2cDZYsBnYi8nxmYb\nUlxLSzvoKO34GrG29Dtof0eNWRuBuFPP4rXwLjxsrLrDcdmiwjad8NI2X1Nr\ntL/TfeKVolmr3ftC0kvM9nol24kXfjABG4xDxcSWXKcco4lLV4RYoISEglRY\nUYWKwJ1Z5L5WjQBgzw2mOlQxrK9qYG4bhOJHM4NMcLocEj8bAc10sWUMZffe\nR3iXJQAOC/cUX2bsfHgxdkpZU8DDR+ngLOsqHsrGnbhS+lSK5lJkCXRN9tYk\ncCeA\r\n=ozvd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Contact Support](https://img.shields.io/badge/contact-support-yellow.svg)][support]\n\n[Installation](#installation) | [Encryption Example](#encryption-example) | [Initialization](#initialization) | [Documentation](#documentation) | [Support](#support)\n\n[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nTo initialize and use Virgil SDK, you need to have [Developer Account](https://dashboard.virgilsecurity.com).\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag\n\n```sh\nnpm install virgil-sdk@next\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n__Next:__ [Get Started with the JS SDK][js_getstarted].\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers.\nInstallation via script tag is coming soon. \nFor now, you can use npm or [download the source code](https://github.com/VirgilSecurity/virgil-sdk-javascript/releases) \ninto your application.\n\n__Next:__ [Get Started with the JS SDK][js_getstarted].\n\n## Encryption Example\n\nVirgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__][glossary_virgil_card] for every one of your users and devices. With these in place you can easily encrypt any data in the client.\n\n```js\nconst { VirgilCrypto } = require('virgil-crypto');\nconst virgilCrypto = new VirgilCrypto();\n \n// find Alice's card(s)\ncardManager.searchCards('alice')\n\t.then(function (cards) {\n\t\t// encrypt the message using Alice's cards\n        const message = \"Hello Alice!\";\n\t\tconst encryptedMessage = virgilCrypto.encrypt(message, cards.map(function () { return card.publicKey; }));\n\t\t// transmit the message with your preferred technology\n\t\t// this method must be implemented by the developer\n\t\ttransmitMessage(encryptedMessage.toString(\"base64\"));\n\t});\n```\n\nThe receiving user then uses their stored __private key__ to decrypt the message.\n\n\n```js\n// load Alice's Key from storage.\nconst { VirgilCrypto } = require('virgil-crypto');\nconst { KeyStorage } = require('virgil-sdk');\n\nconst virgilCrypto = new VirgilCrypto();\nconst virgilKeyStorage = new KeyStorage();\n\nvirgilKeyStorage.load(\"alices_key_1\")\n\t.then(function (rawPrivateKey) {\n\t\tconst privateKey = virgilCrypto.importPrivateKey(rawPrivateKey, \"alices_password\");\n\t\tconst message = virgilCrypto.decrypt(transferData, privateKey);\n\t\tconsole.log(message.toString());\n\t});\n```\n\n__Next:__ To [get you properly started][_guides_virgil_cards] you'll need to know how to create and publish Virgil Cards. Our [Get Started guide][_guides_virgil_cards] will get you there all the way.\n\n__Also:__ [Encrypted communication][js_getstarted_encrypted_comms] is just one of the few things our SDK can do. Have a look at our guides on  [Encrypted Storage][js_getstarted_storage] and [Data Integrity][js_getstarted_data_integrity] for more information.\n\n\n## Initialization\n\nTo use this SDK you need to [sign up for an account](https://dashboard.virgilsecurity.com/signup) and create your first __application__. \nMake sure the API version you select is V5. Also make sure to save the __application id__. Next, create an __api key__ \nand save its __private key__, and __id__. \n\n### In the browser\n\nTo initialize the SDK in a web browser you will need to provide a callback that will be used to get the JWT from _your_ \n server.\n\n```js\nconst { VirgilCardCrypto } = require('virgil-crypto');\nconst { CardManager, CallbackJwtProvider, VirgilCardVerifier } = require('virgil-sdk');\n\nconst cardCrypto = new VirgilCardCrypto();\n\n// getVirgilJwt is a function, that returns a Promise, that resolves\n// to a Virgil JWT\nconst jwtProvider = new CallbackJwtProvider(getVirgilJwt);\nconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\nconst cardManager = new CardManager({\n\tcardCrypto,\n\taccessTokenProvider: jwtProvider,\n\tretryOnUnauthorized: true,\n\tverifier: cardVerifier\n});\n```\n\n### On a server\n\nTo initialize the SDK on the server side we will need the __app id__, __api key private key__, the __api key id__ \nyou created on the [Developer Dashboard](https://developer.virgilsecurity.com/account/dashboard).\n\n```javascript\nconst { VirgilCrypto, VirgilAccessTokenSigner } = require('virgil-crypto');\nconst { JwtGenerator } = require('virgil-sdk');\n\nconst crypto = new VirgilCrypto();\nconst apiPrivateKey = crypto.importPrivateKey(process.env.API_PRIVATE_KEY);\n\t\nconst jwtGenerator = new JwtGenerator({\n\tappId: process.env.VIRGIL_APP_ID,\n\tapiKey: apiPrivateKey,\n\tapiKeyId: process.env.VIRGIL_API_KEY_ID,\n\taccessTokenSigner,\n\tmillisecondsToLive: 20 * 60 * 1000\n});\n```\n\nNext: [Learn more about our the different ways of initializing the Javascript SDK][js_guides_initialization] in our documentation.\n\n## Documentation\n\nVirgil Security has a powerful set of APIs, and the documentation is there to get you started today.\n\n* [Get Started][js_getstarted] documentation\n  * [Initialize the SDK][js_guides_initialize_root]\n  * [Encrypted storage][js_getstarted_storage]\n  * [Encrypted communication][js_getstarted_encrypted_comms]\n  * [Data integrity][js_getstarted_data_integrity]\n* [Guides][_guides]\n  * [Virgil Cards][_guides_virgil_cards]\n  * [Virgil Keys][_guides_virgil_keys]\n\nAlternatively, head over to our [Reference documentaton](#reference_docs) for in-depth information about every SDK method, it's arguments and return types.\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\n\nOur developer support team is here to help you. You can find us on [Twitter](https://twitter.com/virgilsecurity) and [email](support).\n\n[support]: mailto:support@VirgilSecurity.com\n[js_getstarted]: https://developer.virgilsecurity.com/docs/use-cases\n[js_getstarted_encrypted_comms]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/encrypted-communication\n[js_getstarted_storage]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/encrypted-storage\n[js_getstarted_data_integrity]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/data-integrity\n[js_guides_initialization]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v4/install-sdk\n[js_guides_initialize_root]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_guides]: https://developer.virgilsecurity.com/docs/how-to\n[_guides_virgil_cards]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[_guides_virgil_keys]: https://developer.virgilsecurity.com/docs/how-to#cryptography\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n[glossary_virgil_card]: https://developer.virgilsecurity.com/docs/glossary#virgil-card\n","browser":{"dist/virgil-sdk.es.js":"dist/virgil-sdk.browser.es.js","./src/Sdk/Lib/fetch.ts":"./src/Sdk/Lib/fetch-browser.ts","dist/virgil-sdk.cjs.js":"dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/index.ts":"./src/Sdk/Lib/KeyStorage/browser.ts"},"gitHead":"f1a5c995bd1d024ad53a6df276d010c284a3b0a9","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"5.5.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.9.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","node-fetch":"^2.1.2","whatwg-fetch":"^2.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0-alpha.6","fetch-ponyfill":"^6.0.1","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/node-fetch":"^1.6.8","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"^3.0.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-alpha.1_1524218982002_0.7162802342742456","host":"s3://npm-registry-packages"}},"5.0.0-alpha.2":{"name":"virgil-sdk","version":"5.0.0-alpha.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-alpha.2","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"42280606940fe63b424fe734d6be87f1e0975e95","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-alpha.2.tgz","fileCount":53,"integrity":"sha512-Vw5Fffk8IVztSQiQVZSVzYBs4LzhilQKh2qOfVpbVKwMscaE/JNx50vc/ttTc55Bh0s+fmk7iUb/ZBOZyJaPjg==","signatures":[{"sig":"MEQCIBej4ZgbpPZnxO9Sobccyg5bNp5gp3pGV4hdxfmaxeE8AiB38XHJxSTtbyWdXYRJEkB83aw1ftFhcNnNdCIckjBu9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":902299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3zT7CRA9TVsSAnZWagAAgowP/0Jy9cUcEAPqi0MQHMZU\nYIJIPQCeOT4xuQTNIu9BodrcP1ld1ljeSBDulUJLVvfx0LjJIP8D24SpHlAu\nPtn8XaH2H5+ALr41+RadUyzwBujeZu5rK5sjl4hIBNgkTvMRfADWbhZ3kGAE\nBN9VE5CzYHYTdvAy6o/wzLGiY4TT6R6jgbYgSp+3gfG+c8t5shVhvXAFWFGa\n+gCUHxZBsoODBViFP/BYQg2esGPNAI/C4kvRIUhm9kAbyAnBIsqHW86q5imW\nSWrcqCUXFbe4RoNOPs3ly61cWnRiFSE+xMKmpHfOhNnQ7SCwwnudqC4UCxeQ\nkZo1FyhCLSOIx/lJTy+T2CpVWWNyzVdjnGR+FcEFmD1aXKUZSOoh898/GUG2\nC9KV1gS46+IHbTwdDx29/Y0rS6+F/bAB+Bx6mMJEtmPwKpPONIg9BrokbqlG\nkiVxesxsMqepo7De5Gr+Y6t782k1WZIJ/D1O5eaf0U++2FXYXne7YUJ+6iEg\nCMWppBAJtSM6d0Tiqx3r0zJ20jGoaE2LKd9pKQCX3MJ2JrNNMZ+VqhIKtnsG\n+oyxCyf9IM0wDfPwKPa3tz7Vwb5fcZgE0FS9SJ2ZSg+6lWGphvtCuxgjfZzU\nYBMuAzl95K8POJrxaEsDf+QwODyse+OUUn0UyPN7BIfsHkqztomqvddPT6hR\n85+r\r\n=nF0T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Contact Support](https://img.shields.io/badge/contact-support-yellow.svg)][support]\n\n[Installation](#installation) | [Encryption Example](#encryption-example) | [Initialization](#initialization) | [Documentation](#documentation) | [Support](#support)\n\n[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nTo initialize and use Virgil SDK, you need to have [Developer Account](https://dashboard.virgilsecurity.com).\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag\n\n```sh\nnpm install virgil-sdk@next\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n__Next:__ [Get Started with the JS SDK][js_getstarted].\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers.\n\n```html\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n```\n\nor [download the source code](https://github.com/VirgilSecurity/virgil-sdk-javascript/releases) into your application.\n\n__Next:__ [Get Started with the JS SDK][js_getstarted].\n\n## Encryption Example\n\nVirgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__][glossary_virgil_card] for every one of your users and devices. With these in place you can easily encrypt any data in the client.\n\n```js\nconst { VirgilCrypto } = require('virgil-crypto');\nconst virgilCrypto = new VirgilCrypto();\n \n// find Alice's card(s)\ncardManager.searchCards('alice')\n\t.then(function (cards) {\n\t\t// encrypt the message using Alice's cards\n        const message = \"Hello Alice!\";\n\t\tconst encryptedMessage = virgilCrypto.encrypt(message, cards.map(function () { return card.publicKey; }));\n\t\t// transmit the message with your preferred technology\n\t\t// this method must be implemented by the developer\n\t\ttransmitMessage(encryptedMessage.toString(\"base64\"));\n\t});\n```\n\nThe receiving user then uses their stored __private key__ to decrypt the message.\n\n\n```js\n// load Alice's Key from storage.\nconst { VirgilCrypto } = require('virgil-crypto');\nconst { KeyStorage } = require('virgil-sdk');\n\nconst virgilCrypto = new VirgilCrypto();\nconst virgilKeyStorage = new KeyStorage();\n\nvirgilKeyStorage.load(\"alices_key_1\")\n\t.then(function (rawPrivateKey) {\n\t\tconst privateKey = virgilCrypto.importPrivateKey(rawPrivateKey, \"alices_password\");\n\t\tconst message = virgilCrypto.decrypt(transferData, privateKey);\n\t\tconsole.log(message.toString());\n\t});\n```\n\n__Next:__ To [get you properly started][_guides_virgil_cards] you'll need to know how to create and publish Virgil Cards. Our [Get Started guide][_guides_virgil_cards] will get you there all the way.\n\n__Also:__ [Encrypted communication][js_getstarted_encrypted_comms] is just one of the few things our SDK can do. Have a look at our guides on  [Encrypted Storage][js_getstarted_storage] and [Data Integrity][js_getstarted_data_integrity] for more information.\n\n\n## Initialization\n\nTo use this SDK you need to [sign up for an account](https://dashboard.virgilsecurity.com/signup) and create your first __application__. \nMake sure the API version you select is V5. Also make sure to save the __application id__. Next, create an __api key__ \nand save its __private key__, and __id__. \n\n### In the browser\n\nTo initialize the SDK in a web browser you will need to provide a callback that will be used to get the JWT from _your_ \n server.\n\n```js\nconst { VirgilCardCrypto } = require('virgil-crypto');\nconst { CardManager, CallbackJwtProvider, VirgilCardVerifier } = require('virgil-sdk');\n\nconst cardCrypto = new VirgilCardCrypto();\n\n// getVirgilJwt is a function, that returns a Promise, that resolves\n// to a Virgil JWT\nconst jwtProvider = new CallbackJwtProvider(getVirgilJwt);\nconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\nconst cardManager = new CardManager({\n\tcardCrypto,\n\taccessTokenProvider: jwtProvider,\n\tretryOnUnauthorized: true,\n\tcardVerifier: cardVerifier\n});\n```\n\n### On a server\n\nTo initialize the SDK on the server side we will need the __app id__, __api key private key__, the __api key id__ \nyou created on the [Developer Dashboard](https://developer.virgilsecurity.com/account/dashboard).\n\n```javascript\nconst { VirgilCrypto, VirgilAccessTokenSigner } = require('virgil-crypto');\nconst { JwtGenerator } = require('virgil-sdk');\n\nconst crypto = new VirgilCrypto();\nconst apiPrivateKey = crypto.importPrivateKey(process.env.API_PRIVATE_KEY);\n\t\nconst jwtGenerator = new JwtGenerator({\n\tappId: process.env.VIRGIL_APP_ID,\n\tapiKey: apiPrivateKey,\n\tapiKeyId: process.env.VIRGIL_API_KEY_ID,\n\taccessTokenSigner,\n\tmillisecondsToLive: 20 * 60 * 1000\n});\n```\n\nNext: [Learn more about our the different ways of initializing the Javascript SDK][js_guides_initialization] in our documentation.\n\n## Documentation\n\nVirgil Security has a powerful set of APIs, and the documentation is there to get you started today.\n\n* [Get Started][js_getstarted] documentation\n  * [Initialize the SDK][js_guides_initialize_root]\n  * [Encrypted storage][js_getstarted_storage]\n  * [Encrypted communication][js_getstarted_encrypted_comms]\n  * [Data integrity][js_getstarted_data_integrity]\n* [Guides][_guides]\n  * [Virgil Cards][_guides_virgil_cards]\n  * [Virgil Keys][_guides_virgil_keys]\n\nAlternatively, head over to our [Reference documentaton](#reference_docs) for in-depth information about every SDK method, it's arguments and return types.\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\n\nOur developer support team is here to help you. You can find us on [Twitter](https://twitter.com/virgilsecurity) and [email](support).\n\n[support]: mailto:support@VirgilSecurity.com\n[js_getstarted]: https://developer.virgilsecurity.com/docs/use-cases\n[js_getstarted_encrypted_comms]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/encrypted-communication\n[js_getstarted_storage]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/encrypted-storage\n[js_getstarted_data_integrity]: https://developer.virgilsecurity.com/docs/javascript/use-cases/v4/data-integrity\n[js_guides_initialization]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v4/install-sdk\n[js_guides_initialize_root]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_guides]: https://developer.virgilsecurity.com/docs/how-to\n[_guides_virgil_cards]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[_guides_virgil_keys]: https://developer.virgilsecurity.com/docs/how-to#cryptography\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n[glossary_virgil_card]: https://developer.virgilsecurity.com/docs/glossary#virgil-card\n","browser":{"dist/virgil-sdk.es.js":"dist/virgil-sdk.browser.es.js","./src/Sdk/Lib/fetch.ts":"./src/Sdk/Lib/fetch-browser.ts","dist/virgil-sdk.cjs.js":"dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/index.ts":"./src/Sdk/Lib/KeyStorage/browser.ts"},"gitHead":"798ba52095614e9d5aee29a30f9b8ab3ac37e404","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"5.5.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.9.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","node-fetch":"^2.1.2","whatwg-fetch":"^2.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0-alpha.6","fetch-ponyfill":"^6.0.1","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/node-fetch":"^1.6.8","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"^3.0.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-alpha.2_1524577531055_0.7152272318915669","host":"s3://npm-registry-packages"}},"5.0.0-alpha.3":{"name":"virgil-sdk","version":"5.0.0-alpha.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-alpha.3","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"b718d6f8b03600c14cfe2e8ccd36452f43a0e673","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-alpha.3.tgz","fileCount":62,"integrity":"sha512-bKm+cVee0GIvyCA3F1EzUPyY680q6+eKiGZpNWp5VQUTZBzKsxjgLyOljmEHvHWvtWAipFRpdPQvGO1xbCMo6g==","signatures":[{"sig":"MEUCIC0YxNk3MxCzPFjz7E4d55cjWraW1p+WYO/dxy0o4nOJAiEA8NsWZtGQa7SKdmeto+SyecohJuAJ6SujjetNA1OP7eA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":952508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDVkjCRA9TVsSAnZWagAAGKYP/1VH6fGPmqQjwhB4kJi6\nzAPskB/a+aPdPNMbRbmB8HGJE6ecP7goaRSXl5UepgQgmZZ8oVZeEaIV+6j8\niIFE1whNXirGRFdcklP8ak6WlzfGnFcICVOStDznAUhgGgateP0826rbTTNy\n8gZcTgcG4xsbzz1iFTEoMWdqia2rjm6uu8pt5GJaQCFV5jAGAIcFPbCUFuyX\nTIYVaKOtVGIw3NdFnvqXwm5nBl3J2DEHqDzI2yj/P0qawaycLWBYUbC5bvGP\nwhyAzb7r3TinmtsYNL+k5BarUOcVZrqAvYK8DbE5zheK9qa7ND1Iay7T8I/6\njmf2dq/u2oOP8pIfRSpIZJyfG+1hh8aW0nvzLgTO5LpPBzeuXO8KEYSZmkbZ\nIOvthUhyH+OCitph7NV2ldG1zBHZ58740IDOwTryMe7HmFxvmnOxYr0o+cOt\nutTz63OAUB3b2UrjzZP2/j9bUrAJgEPMSae4/LZDps1fj71pI2jqNhj9+ctG\ns7mnxSWEEMqjRGGFJeQHTDQBN07t/+vwrebwX96IuMJ/pW7llRPoxd769apN\nrmVwM5FC0uOVAJHGrqKKh0HmqpOopXqlWZAfCkj9Ogig2k6MQELHdcgDIeRW\nUBlGHuY982VVUFABpfqiBeAtUySFy0xAuhXFqrMjU241u+hNP9tJhrsi2h2e\n5Je7\r\n=cy24\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk/next.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag.\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup, \nWebpack and Browserify. If you're using those, you need to install from npm. It can be added via `script` tag as well.\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script src=\"https://unpkg.com/virgil-crypto@next/dist/virgil-crypto.browser.umd.min.js\"></script>\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n\t// note that you cannot declare a variable named `crypto` in\n\t// global scope (i.e. outside of any function) in browsers that\n\t// implement Web Crypto API\n\tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n\tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto();\n\n\tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n\tconst cardManager = new Virgil.CardManager({\n\t\tcardCrypto: virgilCardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our [SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, KeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(crypto);\n\t\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Generate a key pair\n\tconst keyPair = crypto.generateKeys();\n\t\n\t// Get the raw private key bytes\n\tconst privateKeyBytes = crypto.exportPrivateKey(keyPair.privateKey, 'OPTIONAL_PASSWORD');\n\t\n\t// Store the private key bytes\n\tawait privateKeyStorage.save('alice_private_key', privateKeyBytes);\n\t\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign, then encrypt any kind of data.\n\nIn the following example, we load a Private Key from a customized Key Storage and get recipient's Card from the Virgil Cards Services. \nRecipient's Card contains a Public Key on which we will encrypt the data and verify a signature.\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('alice_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst alicePrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = crypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the Users receive the signed and encrypted message, they can decrypt it with their own Private Key and verify signature with a Sender's Card:\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('bob_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst bobPrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = crypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString('utf8'));\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default, the SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK configuration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [Reference API][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.slack.com/join/shared_invite/enQtMjg4MDE4ODM3ODA4LTc2OWQwOTQ3YjNhNTQ0ZjJiZDc2NjkzYjYxNTI0YzhmNTY2ZDliMGJjYWQ5YmZiOGU5ZWEzNmJiMWZhYWVmYTM).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: https://developer.virgilsecurity.com/docs/api-reference\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"dist/virgil-sdk.es.js":"dist/virgil-sdk.browser.es.js","./src/Sdk/Lib/fetch.ts":"./src/Sdk/Lib/fetch-browser.ts","dist/virgil-sdk.cjs.js":"dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/index.ts":"./src/Sdk/Lib/KeyStorage/browser.ts"},"gitHead":"02e6868e5c29f0f38c7fb78bd6b7d9c5d181aff7","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"5.6.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","node-fetch":"^2.1.2","whatwg-fetch":"^2.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0-alpha.11","fetch-ponyfill":"^6.0.1","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/node-fetch":"^1.6.8","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"^3.0.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-alpha.3_1527601443086_0.04541976954166893","host":"s3://npm-registry-packages"}},"5.0.0-alpha.5":{"name":"virgil-sdk","version":"5.0.0-alpha.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-alpha.5","maintainers":[{"name":"virgilsecurity","email":"boo1ean0807@yandex.ru"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"22930d40ea2e7f120b8a1b9f1350da14f7f31c84","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-alpha.5.tgz","fileCount":62,"integrity":"sha512-RLhUcKVL8kYU9CCkZefYgq0dMuACfpDCnDr3OB9Y5MOlf1QgcMqK2Vtr5QDHuK6gQTSyS9ujMmxshawO/f87Rw==","signatures":[{"sig":"MEQCIB4E1vA9+41YS3XrxCb3mItyZyXiGN7Rjs/xKoDeUfUnAiAP8hsQeWt58JCjfBIfRmvnbGF0gmS06CZPm3Fd7bED+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":952516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHiZZCRA9TVsSAnZWagAAcgsP/j+SlRzhTj+PkCbNtj+A\niVN7Gr1/oXqo1NeonbSewTHryZkWQwsIrEbOBjgR4oHB8gt9NarxmwoWHCxS\nVacHzbPr6CLFHtC4NiDTaRg4b28edYB1jqVGtUdJ4NFSGJeB9PoujlGUEpHe\nWLXgoouj7n2larbAMI2NskCUP3spEmPb/MWms1eob3l+jK4cFnEj4KqiRKt3\nIYLeDNuMrf5IWGszW8aNY/L17RH1Lo6ORtkpeY4FpcMkwe8zae+v4Pm8oFaS\n3QllmJd1mV5WQNv6nqYv3kZymON8tB3avJb/kr0gg9/+TMvU9ErRnym4TYSA\n1FkyWkq1S52gR6cPztcceb3KPqJEo4V7cjYRdRnd5JlDbNnUoVUiW84wp2N/\nba2L9rW5czWYah3rb9kAG6pon6FqKqKYj+FDuhxOjiXW9J9nIlilW+2lZZcM\nz6Pb9GL0C09krTMA9DTAFDTvL+aofkaBNfriyfHuXLoV4q6ali8pE72N3L+f\nt0fnen0CpWjv8DRXqOpo/WBStD1ovF+DmLLAsv+PtPhBft2Zm6VpO8HLhUDk\nieZM3YEjsk/WAHZbUY2dsoyZ3VLTETk/MhayDpb18LmLTXnMgrxh8nmUJN3v\nOn4AemgTlHdJqs9mi6SYrz4xlMzERQAhj8g4/bCMLZ5AoF5OA5fLzU2ExrfQ\nFeME\r\n=cS2x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk/next.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag.\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup, \nWebpack and Browserify. If you're using those, you need to install from npm. It can be added via `script` tag as well.\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script src=\"https://unpkg.com/virgil-crypto@next/dist/virgil-crypto.browser.umd.min.js\"></script>\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n\t// note that you cannot declare a variable named `crypto` in\n\t// global scope (i.e. outside of any function) in browsers that\n\t// implement Web Crypto API\n\tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n\tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto();\n\n\tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n\tconst cardManager = new Virgil.CardManager({\n\t\tcardCrypto: virgilCardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our [SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, KeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(crypto);\n\t\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Generate a key pair\n\tconst keyPair = crypto.generateKeys();\n\t\n\t// Get the raw private key bytes\n\tconst privateKeyBytes = crypto.exportPrivateKey(keyPair.privateKey, 'OPTIONAL_PASSWORD');\n\t\n\t// Store the private key bytes\n\tawait privateKeyStorage.save('alice_private_key', privateKeyBytes);\n\t\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign, then encrypt any kind of data.\n\nIn the following example, we load a Private Key from a customized Key Storage and get recipient's Card from the Virgil Cards Services. \nRecipient's Card contains a Public Key on which we will encrypt the data and verify a signature.\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('alice_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst alicePrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = crypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the Users receive the signed and encrypted message, they can decrypt it with their own Private Key and verify signature with a Sender's Card:\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('bob_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst bobPrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = crypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString('utf8'));\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default, the SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK configuration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [Reference API][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.slack.com/join/shared_invite/enQtMjg4MDE4ODM3ODA4LTc2OWQwOTQ3YjNhNTQ0ZjJiZDc2NjkzYjYxNTI0YzhmNTY2ZDliMGJjYWQ5YmZiOGU5ZWEzNmJiMWZhYWVmYTM).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: https://developer.virgilsecurity.com/docs/api-reference\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./src/Sdk/Lib/fetch.ts":"./src/Sdk/Lib/fetch-browser.ts","./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/index.ts":"./src/Sdk/Lib/KeyStorage/browser.ts"},"gitHead":"aefb1bcb1ea910fc95387b9d8049af67611c525b","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"virgilsecurity","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"5.6.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","node-fetch":"^2.1.2","whatwg-fetch":"^2.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0-alpha.11","fetch-ponyfill":"^6.0.1","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/node-fetch":"^1.6.8","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"^3.0.0-alpha.6"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-alpha.5_1528702552554_0.9852849691273156","host":"s3://npm-registry-packages"}},"5.0.0-rc.1":{"name":"virgil-sdk","version":"5.0.0-rc.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-rc.1","maintainers":[{"name":"sun1x","email":"sergey.nanovsky@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"c7672128db9baf5912d38157f83e67d93637cbb1","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-rc.1.tgz","fileCount":69,"integrity":"sha512-O6AI0TnynVoEd/eP3zq5yQfiv1oHBJoVaRTFOzH7VPBa27x6FpFwtc3P0HW4HZAWtEimS1CDY4y1OHkuIIRiXQ==","signatures":[{"sig":"MEUCIQCxrKO643YPl9R+JM9Z7KhR0m02QvrOzS0MrBthRetB6wIgAu6+0p8+CNNp/uys3t5/OBCJdnqcxyNBtsjClcVLRz4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":743215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWK+iCRA9TVsSAnZWagAALfYQAIHExi7kc6o2guh+/L98\nXGrOg9oGQeVBOkCKibXxNvPSVXIbLPWK03k5x5MCszYIeJ476/f0J+mjbkMh\n9dgwcd1WBb/K7ycy5hNMIOnaQsmwfR6ivhloffTMVBehJwUXa/ugjbWXkgOq\n2liNczdBK6xqc8yM6vdgVu14Azp6DAW7bMkZNJLZ5cAAmMrNfW0vmiLWLzDm\nbmghatuM6orUW+ypWVudh0FoukHy7bNrkRFHufoKMKQm9GlEjlKNXMEUNn/1\ns3xazw4AZ629tfPqZ1SBJcazRo5ZUqH/7EBN1eEHs4gUlNPuQ3o59ZO0LRSy\nVE8aQNYlOd+kFmfbgHs4hEo0rfZSSJekq1MIDjPUTUYBJZua32E3jGsgEJ2f\nSIFNCrwdn0l8yR6sPbvIYP7HOkawoqyC5er/baEqgXQ8Ont1R7BtHRb4Yiwx\nmKdcQyBLte8pZBv2tmjX43zZKHFuTlekh8MpKxcpjNRELqffUaGPIr1p+vg2\nKXwxOrtI2NbcSsFPAayBkfB4fZ+YGalLefct2N3rzVzBqWnfoKu6CEQobkl8\ncR12GKdNdqosILfvkM+6Ryo9Fa1fQ06E+vKatiZA1fISWH4rL4s/40mrZioY\nOjXrVw7br+uUmqCDVW0Z+QYGbih5pxJzfLDDi2x98u3Z6UH4nLOl/2wQ29Fj\ny4Gw\r\n=YABB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk/next.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag.\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup, \nWebpack and Browserify. If you're using those, you need to install from npm. It can be added via `script` tag as well.\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script src=\"https://unpkg.com/virgil-crypto@next/dist/virgil-crypto.browser.umd.min.js\"></script>\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n\t// note that you cannot declare a variable named `crypto` in\n\t// global scope (i.e. outside of any function) in browsers that\n\t// implement Web Crypto API\n\tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n\tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto();\n\n\tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n\tconst cardManager = new Virgil.CardManager({\n\t\tcardCrypto: virgilCardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our [SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, KeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(crypto);\n\t\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Generate a key pair\n\tconst keyPair = crypto.generateKeys();\n\t\n\t// Get the raw private key bytes\n\tconst privateKeyBytes = crypto.exportPrivateKey(keyPair.privateKey, 'OPTIONAL_PASSWORD');\n\t\n\t// Store the private key bytes\n\tawait privateKeyStorage.save('alice_private_key', privateKeyBytes);\n\t\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign, then encrypt any kind of data.\n\nIn the following example, we load a Private Key from a customized Key Storage and get recipient's Card from the Virgil Cards Services. \nRecipient's Card contains a Public Key on which we will encrypt the data and verify a signature.\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('alice_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst alicePrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = crypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the Users receive the signed and encrypted message, they can decrypt it with their own Private Key and verify signature with a Sender's Card:\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('bob_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst bobPrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = crypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString('utf8'));\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default, the SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK configuration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [Reference API][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.slack.com/join/shared_invite/enQtMjg4MDE4ODM3ODA4LTc2OWQwOTQ3YjNhNTQ0ZjJiZDc2NjkzYjYxNTI0YzhmNTY2ZDliMGJjYWQ5YmZiOGU5ZWEzNmJiMWZhYWVmYTM).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: https://developer.virgilsecurity.com/docs/api-reference\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/adapters/FileSystemStorageAdapter.ts":"./src/Sdk/Lib/KeyStorage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"ae615a83014e6d67ded928d99d91f04b2b62946c","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.1.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-rc.1_1532538786365_0.5656378211085638","host":"s3://npm-registry-packages"}},"5.0.0-rc.2":{"name":"virgil-sdk","version":"5.0.0-rc.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-rc.2","maintainers":[{"name":"sun1x","email":"sergey.nanovsky@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"73f6b3a5b7772308dfaa60f624f956b6aa23bd78","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-rc.2.tgz","fileCount":72,"integrity":"sha512-VCc4hmlw3C/xD4tVy6ck79QNYthLv9ofqhR3edPR+UZxqPehw65hdlofooOKi+7n2EidZrp5Y/OYoGL8Hk5c2A==","signatures":[{"sig":"MEUCIA6rjSEgO1aI+kV8uJWhnSjqM68UjenW7VxK0W4qit5TAiEAuUahWoac/r+6H4CEZNR2Esz3iv6jGgBBhQNTqWLqnSw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":762126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbXuy4CRA9TVsSAnZWagAADtQP/RjdSDsMudUzIsq+u4Kn\neSkbcnL4cd0IcV1BDBP2FvfGbwu5cshKmn8T6fZgJ2Qkf+hMClNJlSd4JbV2\n/rhHYfwtxYJxERqMRxp+KS4c1gFrFR8PqKfew8QF5+LbWe2I0dAUJnNiJyyg\nDhUk7CUUvaltLzn7IY/RgaEQmhKmOQyJxkPQQawu0wAK/0D3N38FBKS6K2cQ\naGHAodwPhkIbcHeA0U5Em/uqzFkJ0+/LYwTpO39si7OofvygKOknPEojDCjm\nZ25r+azVSkIdzf+H2Z8R5LccD2/7gNpSooRg/VqBaDyr/5aHX0pjR3mtWYIj\nzAhjl8Mq8rJ0XHvZFV6nsYuvXlO9LDUd7IwAgn8rFF6L3Z59WXevUGC2/xzA\nH3AUwwMRF249Oc7XZgIzbEtp1Ejxr3oDFmK/mz0HLpADtCx6Sx/e7jXGYy6x\nTfmU7vmV/NccLLZDHffyUwnFy0GrgytUz4WOGkDabZMO+kIhyZp9cZiYGVE0\nyU4KakGWeaIL7OvP5xSGaHha9jY7t1iXjy2DWOTmhVgV7zy4sQVposzvBr73\na8f4pJmxxBXclk6W1BhMzeYTVk+Ed1J6cuiRUXnwO+a0V3GeWlM32JXoLzAQ\n8qIulC08/iPH5omvcFmn0C4EkHsH/neHwguUMOPvqrlBoYQwjwW151Sf7+CX\n4/X2\r\n=ncW0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk/next.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag.\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup, \nWebpack and Browserify. If you're using those, you need to install from npm. It can be added via `script` tag as well.\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script src=\"https://unpkg.com/virgil-crypto@next/dist/virgil-crypto.browser.umd.min.js\"></script>\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n\t// note that you cannot declare a variable named `crypto` in\n\t// global scope (i.e. outside of any function) in browsers that\n\t// implement Web Crypto API\n\tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n\tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto();\n\n\tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n\tconst cardManager = new Virgil.CardManager({\n\t\tcardCrypto: virgilCardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our [SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, KeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(crypto);\n\t\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Generate a key pair\n\tconst keyPair = crypto.generateKeys();\n\t\n\t// Get the raw private key bytes\n\tconst privateKeyBytes = crypto.exportPrivateKey(keyPair.privateKey, 'OPTIONAL_PASSWORD');\n\t\n\t// Store the private key bytes\n\tawait privateKeyStorage.save('alice_private_key', privateKeyBytes);\n\t\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign, then encrypt any kind of data.\n\nIn the following example, we load a Private Key from a customized Key Storage and get recipient's Card from the Virgil Cards Services. \nRecipient's Card contains a Public Key on which we will encrypt the data and verify a signature.\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('alice_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst alicePrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = crypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the Users receive the signed and encrypted message, they can decrypt it with their own Private Key and verify signature with a Sender's Card:\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('bob_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst bobPrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = crypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString('utf8'));\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default, the SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK configuration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [Reference API][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.slack.com/join/shared_invite/enQtMjg4MDE4ODM3ODA4LTc2OWQwOTQ3YjNhNTQ0ZjJiZDc2NjkzYjYxNTI0YzhmNTY2ZDliMGJjYWQ5YmZiOGU5ZWEzNmJiMWZhYWVmYTM).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: https://developer.virgilsecurity.com/docs/api-reference\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/adapters/FileSystemStorageAdapter.ts":"./src/Sdk/Lib/KeyStorage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"39545fd1c9c7be64c3584928d7992c62d556c979","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.1.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-rc.2_1532947640450_0.31085940454360506","host":"s3://npm-registry-packages"}},"5.0.0-rc.3":{"name":"virgil-sdk","version":"5.0.0-rc.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0-rc.3","maintainers":[{"name":"sun1x","email":"sergey.nanovsky@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"1e9d40336147cdd3f36c4f393a98d26764fc6ab9","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0-rc.3.tgz","fileCount":72,"integrity":"sha512-l5nEn0GzyTlYpxb58guLYDgAkOgX0a9bsFYogUCDLtRP65gdsb2QRnOaPcQTZjze9qLUO0lhSVE2snJh0L8HPA==","signatures":[{"sig":"MEUCIGTNRFIobugZiNQKeGjS+2wTlB49iHFTEHg01jUlHXYQAiEA7g8Mr2tQ/NoghpVrBTVps3Nyttz7Gv3GNb6F8ad+qww=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":763629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYwyDCRA9TVsSAnZWagAANQIP/jMKcS7S2GWgUEk9EvPc\nilBKrPw5aKkQUJSJeBNEB3L4KrR89/FhfD+9tqlzROBeZpA+M0nHkG2/5tK3\nKEFNdC/CQpmZsNitGmgI6GJbZjdkJIWDLN7MPDgZtKNfpzxRdsHzNVA1kbvI\nDxGnLNHCyPJnjtsk0vGKCWUwGpCY9q3dPR3YRqCDsVM37CSxkPfVujq6V5bw\nurYjEQItYtChfTwU78Xi5S6t5EIifSaXZHpHX93N3x6wWzsKmtDrVPUbM3l8\noh9mB+b7qEu8AMa83nvPK0C1C1UHQLZfaRMRcWfbPPdXPvMbGkuk2HgXtyWw\nSx90qh4GxFOmFULrIAoSrqUIG+VtDUGTPHC4xWhq72gTMlXxTur0/nr/uJvP\n94K3GR53ZtOqa6h4h4UzUOj78ZRGApBsMA89hMt8w6LEzAvi4oZR3/9xEFUP\n7AqVtvIScsyvLA/dlbraI3RQ45GpHUOLiiIXuUKRKVGTqLa/jpFnG7Tqyfcv\nOWeCwqFjgKpKzJo3Mx+0/pkec7Sl5wiybiz1U8whdrHtb2zcDfx1eNhNqwCV\nMZauf9Ixf4pqLGqpY5W8ynBliF4l0Brp7t7bLECVdaE3mWAfss17gKzBKRzp\ncBhDhCSuv+s9X3DF6M8GK8nRP74eheANzzget0GRdJgDFFYmgFaLag6j2iwG\n1hHF\r\n=t0oW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","readme":"# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk/next.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript/v5.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThis module can be installed via NPM. This is a pre-release version, so to install from npm you need to \nspecify the `next` tag.\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto\n```\n\n> **Important!** You will need node.js version >= 6 to use virgil-sdk.  \nIf you have a different version you can use [nvm](https://github.com/creationix/nvm) \n(or a similar tool) to install Node.js of supported version alongside your current installation.  \nIf you only intend to use virgil-sdk in a browser environment, you can ignore this warning.\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup, \nWebpack and Browserify. If you're using those, you need to install from npm. It can be added via `script` tag as well.\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script src=\"https://unpkg.com/virgil-crypto@next/dist/virgil-crypto.browser.umd.min.js\"></script>\n<script src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.min.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n\t// note that you cannot declare a variable named `crypto` in\n\t// global scope (i.e. outside of any function) in browsers that\n\t// implement Web Crypto API\n\tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n\tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto();\n\n\tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n\tconst cardManager = new Virgil.CardManager({\n\t\tcardCrypto: virgilCardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our [SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, KeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(crypto);\n\t\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Generate a key pair\n\tconst keyPair = crypto.generateKeys();\n\t\n\t// Get the raw private key bytes\n\tconst privateKeyBytes = crypto.exportPrivateKey(keyPair.privateKey, 'OPTIONAL_PASSWORD');\n\t\n\t// Store the private key bytes\n\tawait privateKeyStorage.save('alice_private_key', privateKeyBytes);\n\t\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign, then encrypt any kind of data.\n\nIn the following example, we load a Private Key from a customized Key Storage and get recipient's Card from the Virgil Cards Services. \nRecipient's Card contains a Public Key on which we will encrypt the data and verify a signature.\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('alice_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst alicePrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = crypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the Users receive the signed and encrypted message, they can decrypt it with their own Private Key and verify signature with a Sender's Card:\n\n```javascript\nimport { VirgilCrypto } from 'virgil-crypto';\nimport { KeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tconst crypto = new VirgilCrypto();\n\tconst privateKeyStorage = new KeyStorage();\n\t\n\t// Load the private key bytes\n\tconst privateKeyBytes = await privateKeyStorage.load('bob_private_key');\n\tif (privateKeyBytes === null) {\n\t\treturn;\n\t}\n\t\n\t// Get the PrivateKey object from raw private key bytes\n\tconst bobPrivateKey = crypto.importPrivateKey(privateKeyBytes, 'OPTIONAL_PASSWORD');\n\t\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\treturn;\n\t}\n\t\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = crypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString('utf8'));\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default, the SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK configuration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [Reference API][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.slack.com/join/shared_invite/enQtMjg4MDE4ODM3ODA4LTc2OWQwOTQ3YjNhNTQ0ZjJiZDc2NjkzYjYxNTI0YzhmNTY2ZDliMGJjYWQ5YmZiOGU5ZWEzNmJiMWZhYWVmYTM).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: https://developer.virgilsecurity.com/docs/api-reference\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Sdk/Lib/KeyStorage/adapters/FileSystemStorageAdapter.ts":"./src/Sdk/Lib/KeyStorage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"5249b3b8a30d1af05cb7e8d238e5d5750c504b28","scripts":{"test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.1.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0-rc.3_1533217880364_0.013461774272749416","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"virgil-sdk","version":"5.0.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.0.0","maintainers":[{"name":"sun1x","email":"sergey.nanovsky@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3efe5ee4422b25ede9a8147ea56ac668a649987f","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.0.0.tgz","fileCount":70,"integrity":"sha512-68dXvLixQhSYVnjmd/blL4knYkhqxANoAcslk4GZaw52H+0arGnDvmkvvcFTE8LEsheAckQVNqrsvT8KiBlPiw==","signatures":[{"sig":"MEYCIQC6dL7vAGJyXbBNyMeBG6KHnajl7Oeppn+WqEgKdU7OJgIhAJ8AmIKGZvl0uasC/ARUPycnDPGmt2TcSxMgyP0Ypw4X","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":892716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcslUCRA9TVsSAnZWagAASqkP/0iiAmtHMzbvr4AjLdsq\nGOWFK9gEsZWGYANJTq5DqymboTJZbEu6t+QwkazqLpysFRN8J0M6o5ud2Zd6\ns5A3Fd+a2Q7PbiMme//TgPyeGfRwgtKbRd99So8TrIXN5KRpCiScOfJ4LRfR\nd4kIt59GqZPc9vIuAPblGYysBdBG+JRlPibnsxYjuO83g3AOsF7acJAUTijU\nurpfbWjM0OeFHM/mbMWEhI0I8bNKdUBEdPoaTmxrif152dwLkevWFzVe+pyr\nrm8kggXtFMVVLxGo9WC7LOVNWoQC7BN/nCWvw2PWOEceQmVhIbbyLuXo3+IW\nIKTWAAUZMAIoRUakomif2OgOlHf8TWgcWoUHjN2WTc1Q0xo9kJoQ8rkpgW5h\nBmpd1P1KtBigTCGhHkp5ReV0n4rtd7x6xUQoOHCl86wJdRmU/Yzz7z44S1AN\nOJN+H7OxDS4H0tx50pW/gSGkedMU7qHnyrSCHWnv//MZ1AsfIL3W2n/gPkkw\n6MtkSJnGRIy/78O5THrexghVoLwScMtrO6zWcv7SsMilceJ6BewJNwmaKggY\njNozJnEYbdw8R0mn6jzQPOWYBlMEWHer8Gm89dQcyttgSDY39E8X5OqJaE6S\npZnyP05z1UsFjSAmzJ68zvBU4aea4PAse5f2vO1qPDw/eFA2FJAxyaD2oNx6\nxfvB\r\n=DBk4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","files":["dist"],"module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"7f15f85943ef61c76c328c3ac971a935ee479252","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.1.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","typedoc":"^0.11.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.0.0_1534249300106_0.03525572425008794","host":"s3://npm-registry-packages"}},"5.1.0":{"name":"virgil-sdk","version":"5.1.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.1.0","maintainers":[{"name":"sun1x","email":"sergey.nanovsky@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"3042e364fba95d6f719f9e2baf8d9868daebf4cb","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.1.0.tgz","fileCount":70,"integrity":"sha512-KZkFAnI8wPM+sf6KZVYWLqT2KaUhW7ZSOjcVBnwuq3we66WSePGPHG6FZ3wkqJc1aw9PNhTHkzbagUcQZgZAoQ==","signatures":[{"sig":"MEQCIH8xObrASQHi59EHDMYWSHZHIKRxAQYFE8ussR4v9vvgAiBzG9A21h3AhpW8QhhZRLz4RIR7JOrYt+k3W8L7g0lZUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":896779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxwbKCRA9TVsSAnZWagAAyZcP/1VxG0jPZNtY5hup3C4W\nQyyEFd48Gd5GXfecCQ6vAVSTfBftCoegOeFxYTAX3a+22+bDg+BNKBGXf5qY\nB159CMdpEcL2/pqIksSXCZP1C7/M/9vWL87ewIybejjvQUpVGIJlojvLHaXd\nCYqu0oOAzp3a6s0RzHbHsqhAJ/XRcvy5uwOQ4R30FvI0l2XlUvsSYxnHeOQe\nNVTZjVFHZ9k4iGJYxGXq4kD8akduqY9PK43GR1iw/gdCrplrgvnUf4NpKdst\nlQDTJfQ1IRUadsyeQnbbFBt2COa/q9BM5Ywc+Tuj7Nrvr3GvxYpcLwUq6LNH\n8ybPIMLJyvD+7lW2o7iZgQXa7W+DKKlIwZfGdiZ4iZKYcQVbBFf6EvxG0Z7g\nAWThdnCJwi4YJNbuTO7FBqwu0eVsQ1dKQkFpJ9J/iqCg8Zp10piwa0WB8d2T\nGB8c8/+b0IxhcfMQnL7BtpAEtFhxjfPLEJhnxOyOEzzfxMiUs8lSfbYDlaIs\nMC0OrWSMvnNwXdy5t96Ryr2DVx9uGCUx6ITl1vf4KQpLB/nZzthbfPIIWOMd\nFxLylOBvpcIdqx+w9rJ64ESIpiiYgrzSSH+t19Frn4mhLHf55EuNH3KRPEq1\ns4EtwoQyq6m00ZZbmluM0heLSYDRGx/+LDpq2ge7Un7r8izYF09IpVew9NBo\nWUzO\r\n=Oz02\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"e84c584cefd7afa919bc9a8f02d1d0aab2f1bb74","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.3.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","typedoc":"^0.11.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.1.0_1539770057913_0.44936896991980313","host":"s3://npm-registry-packages"}},"5.1.1":{"name":"virgil-sdk","version":"5.1.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.1.1","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"28656fa5d20887b77b466f590e83a84cafbfc40d","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.1.1.tgz","fileCount":69,"integrity":"sha512-Dszr8Eg/8WRF7Gs/KYayJq77b+2D0bfND8k5DICCtk3lpnth3zKyi8l437TEO4X6+zfORQQw/U1Gq/2Pl5WIfA==","signatures":[{"sig":"MEUCIE2P8fQL6uBGBPYa+LgKioAWGXpi3lcaeFa8agY/Qjo3AiEA6YaUIvBLKSIwNcPMttfe10I9JU+5RMlNNeiI3mkWcNM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":890992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2KqaCRA9TVsSAnZWagAA/tEP/2xF+YJA/F9T4ZMDVC77\nwPphXFpyqwL3R1mEhzqQ9iMgESlOErRgz/zzpKPdASO4zjxYxlWEjlh4TyPC\nY7+odqLKsDD2X2I2VCcBvVWyD5AgCuXOsTSRXl3CfQMBxgWxZRZtTLDumwYV\ndgauv4CBGX41lbkXs9gh2qqr0hpYVNT6CFklF3BRFdxJHWStM/r+4LvR68O6\no0DVpAkdR0eZ0K+NkG6738k5wCW/Lnag8G4lVms2fA+Pas7GY48PvXpvs6Em\nsvF9pOPKyaQUQk7bBOTP5HaBQGdzkNdnGOI5BGzPg9gARkMH28LmXbtr4RFj\nBAZYh0jDXPZHYkNtlXa0Y+bZnpCUSVXheygQ26o79SVR7Gn63w5txreNv4RQ\nlZ9FsoONBnAmlUaNv2oWL8osPE1QF0+KjfT0NLGYt6SLdkFcNDVmKc7+Foie\nExqDrvSlUVAtvcYP7an6Ex+0RFDA95da8TUQ5ndG5BoKjNW06m2wEQ6KQhVZ\nn0LusyPU/NJNklCIbmhHTQrAr//aXqdst7XZ58xGWAAjfvsEOipxTNrYjrK/\nYXdbZ5rOjx/U8H7OHXmkamqDfMu8pQrfjPlfb0GBRFECGu2zTcb3hJ1J1Pyb\np/MPKELecBCphbTlC78cj/PyyxgJaPWUWeVIwxb9oxn3PQkzS55hwCWkoy63\nFRTd\r\n=UPWe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"d529295866b3bf39a87995ef081acc334036311e","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.3.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"8.11.1","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","karma":"^2.0.0","mocha":"^5.0.5","sinon":"^4.5.0","dotenv":"^5.0.1","rollup":"^0.57.0","ts-node":"^5.0.1","typedoc":"^0.11.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^2.6.2","@types/chai":"^4.1.2","@types/node":"^9.4.7","karma-mocha":"^1.3.0","@types/mocha":"^5.0.0","@types/sinon":"^4.3.1","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.0.0","builtin-modules":"^2.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^2.7.29","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^2.3.0","rollup-plugin-inject":"^2.0.0","rollup-plugin-uglify":"^3.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.0.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.0.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^5.1.1","rollup-plugin-typescript2":"^0.11.1","rollup-plugin-node-globals":"^1.2.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.1.1_1540926105936_0.48973207113120854","host":"s3://npm-registry-packages"}},"5.2.0":{"name":"virgil-sdk","version":"5.2.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.2.0","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"744963e783104188bdf483ac697b981e3f3e6440","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.2.0.tgz","fileCount":69,"integrity":"sha512-lVcDvRzQ4Hkhw53CtXKZW8z0Yi2VPOWm6VyhNPapPzRRJwdOmXF9DhcQDCb+pjKhpYf6t/T4gPhCfG2G6ZDQ5A==","signatures":[{"sig":"MEUCIQCHhXf73gUTH56J9gxBV4taZ4KVyU9r6FIQzbM4OXz4lgIgEOj5AOgAagXCx1D/EZgpVf5aLQyxSiWqlkAykH8S6AU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":895489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDlSZCRA9TVsSAnZWagAAfa8P/06DIoQEbQAjAjUoA1Ud\nf0txbfnHBY3PSQX54LGfNa+Bef9a+oBn3fZFUFVuaMtJ0YgfWxdVEmZLetcT\nw0GkKq69Lbd1sCa9yzQHO6dIz/L2olbfGQYbRnny/dJ7pTj6MWO8+aUFHPM1\nUWijo1dMECNTBtfKFVMjwLzJPj6uQ4UPfOdYHAUxb4yCcqkaYS3BvRH9Wd2L\nHbIzF/UTok6XRMirdTPrBnFLRORp9yWHP+9TOsDRzXzRVNrMMGx3yHoaUucm\nltxLfUSkoZT78gHDzLX+dLYeMGAvalwWbSO1AisJ24T0bdDbmAPIAFIrdqLp\nlORlAjUoIn1jvfd0Ehd28ne5SxHqadTkExIOvrs6VDUBUhR2HZcjTgo+8gpI\njfj7jbCXJJqRsVvswLXTLayjwNBXCNMe9atyTKi7orjI6aA+aGM25C0CAuHy\nz5da3e0zdY695FVLfCL6DW/ln8iAu45qZCwrsQPIwmm/lZtzmk3YqPMkZDBj\ncUtC+bxU5y+X3UUiz7fd8Xe/uC2oHCUvShOKp9INuAxulUPWkNw45B3PrNr9\nSqzBfOKhpk8OOA+z1TxH17sqhBUXRm361ggZ3tESwhJX83vnaRsPILjEOG9t\nT7zCOOSwdmZul8QTt4zA/mGqv8cwHASZHxGHhFNMexQLi+PAKtKjZIEURrPm\nOhX6\r\n=dDcu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"ba97e9a6cb13c91c475aa438780880e3e907294b","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.13.0","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^7.0.1","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.2.0_1544443033180_0.40225910019972577","host":"s3://npm-registry-packages"}},"5.2.1":{"name":"virgil-sdk","version":"5.2.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.2.1","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"0b0ae41d2a4df29242653c35d0fe9e639c5a14d4","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.2.1.tgz","fileCount":69,"integrity":"sha512-v5LuW1AhayZ/lOwX9hlYz0z/uyCWwgVFIgNkdiGIMPioCp1sEZblU7qISkU2/mKbdeXz+3nmZYP3g7ulMw6pQA==","signatures":[{"sig":"MEYCIQD7yDV2aLWCyfN7JRkpGn0yRxOG0L53Xm8i+KAM4+6UdwIhANmUPK0xXqxDk74Iu1DPICTH4OyS5Mn5D284+D4hwcxw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":896862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG3udCRA9TVsSAnZWagAABlUP/AjcA1q1oOF72rMBauFW\nP4zD3l01MpmyC/avfgMVu/9SpvJk+G/FSgpM84HrpQMbGZsKICiPVsBECGl5\nLE6I6PpiD/q3s4wJAM2l2je9W3DJha5zbDAWEIvLif+27G21W1ubCGmKmeLu\nqWo5Lkwju5bxYkpzYl7evHXzBFfvAH5sNm/7Ny7Ka/3CHdjDE/DSR8pjwwVZ\nPo6pfyRHovBiuHxl2PD8NNpaSUgNRNnsEJnjq5w7K9SNNBkdYCRUjXFatj1n\nc+V5TeoHcbw9NgmAOMIl+qZjfpLULkP5NAoJlF0+9vI2W6vDgFYkhyn+9w6o\n+GFmE8k7JLqUoRKy9A4YH+2PL9kcO19QjBmoBMwYYNLjT28MGSa0axTpdhY6\nfrB1esDPzfe1lpQZG0sz21zVJmdpL8EeUPQseTjm3EqLKx/beQF/18Cz6z7/\npmvMG2kuopksUcUf0qkoAZ5zzg29vr4EOn4P0svKpX4WA4yF4QRlJDIRL6qo\nzfJm/Q9cIfDseVpUdcEaJNi9QAxTEumX5V8GcCCe4GSEoi2bVwjCSlOAUFx1\neVSrmrqKyFO7NZB22QMywV4fg9DOlPThWjHUVPEXRi0yUSUGSA9dQegF54SS\n/f2upP/c3yR+R2CajWCu6pHUK4cAr8NivYfPWB5+1AvL88M+dQxBARNX0VLN\n7fDQ\r\n=AzK7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"eb29a79204074d0a4cdbec544f95f86bf92e9415","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.13.0","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^7.0.1","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.2.1_1545304989043_0.6676666075333915","host":"s3://npm-registry-packages"}},"5.2.2":{"name":"virgil-sdk","version":"5.2.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.2.2","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"0f4220ffe2a536a4fad657dfa5a24bf672bfe61c","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.2.2.tgz","fileCount":70,"integrity":"sha512-/Up7GdTHCgcfxidCoUYEdeDGYX59Bvp8JCcecvRc4KQJ4KxBv0cCvfVMGUWQUmBa4siVyW9gXxqWx5ZHP6ehGA==","signatures":[{"sig":"MEYCIQDKsEWc+dVxEJI6Szr/iQmlATcse0LHe5/XNcKKv8DRPAIhANZX+v3rhUcFI20AZ0sHin+W+hF1bxUrWjpJZVJ4bvZx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":897788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWUuWCRA9TVsSAnZWagAAeTsP/0Ax88H1+O4/U+M9mArh\nohgRX4+lfxsLdeQ2AjHngJjFn8TwKisWGY/OtjVbnUHHbN2CF2Zd10P4fBG9\nq/2tfELMCx0uhBLLBukeb2j1RCtdGQZ+LxT0LHdSGN4oZT/EpY12tDXHDgnE\nbosmvS1kA2bE0qSH/XKvVrBIBAKZ3J73KQpPWoDdQcUZTRcUq7ajl1ZcCoU7\nARJznyyvZa2ZhevtXrJ9GLCMFEZsL0arOsn2/Z273sYxzPw6Y5ryLeJ63k/V\n6lBiQj4PqVWx+ctmmUGEhYeNBhiP11Zeu8wfsDnABsD+0jn3JDAM5V53SPe4\nBwclVq5atAizhzfgVBlQq9nuRS36YMBzRLhbSPZz4eCTFGwtyWRpPolQjqRK\nmLlYUUNey0A1UjEEm9BdKHdPHzetIS5LyOnmpyVWTLhidUglPJ8Lt76D+gpC\nCTtVBgrs5hTFSEMKc/F0df/u0GT5ETqzFCkI++DLVMS5hjXY7egsW/OUXTLA\n3vW8IzhEJdYqFbNLP2v2fHpQOBdlfy19RFtOveGIkdKfS9TF6m8htqt4Uzz5\nhcT+R8JKWMmljiFsbwUcNyuzs83k3xyIfiCANiaJlcVNXSsZH4zfIdwq7GAA\nxpv6hObZtGzFoPtst6+Eoq9cas2TW17CmAbOufHqHqQlfvNDz3F+rFeJtv3K\njhTR\r\n=znoW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"fb861a1642286c36943748268660fe4010860b58","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.13.0","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^7.0.1","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.2.2_1549355925700_0.6325994516971636","host":"s3://npm-registry-packages"}},"5.2.3":{"name":"virgil-sdk","version":"5.2.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.2.3","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"381e077f10279a2d4061dff10b226ea01e93fabf","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.2.3.tgz","fileCount":74,"integrity":"sha512-uxKjMcAUMazqq0dEvC0BKw4WqiQyhHl8n+BKDsKP2b9mqxWWHx+ndr4egnjpw3ewKaAsvG3LaIqAUDlDVcvrCA==","signatures":[{"sig":"MEQCIF+vlYGPSvrAvw/txBuF0BQEbxkqbXnpio+iG948AShtAiALx9/entUoCjXnQbzuOtcUY0CD2HkD9zl0bkp5vCFYjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":931353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwxsrCRA9TVsSAnZWagAAq1EP/0zCEjYSOtkhOBOREbeM\nXGZcWX8f4fMJOLnPumsXL4SCSYOTmYPGM9/nViQg+MteTzO9W2ECbBBxIEJz\nqqR0mOKFrR45Ru2fIjwr4vgFOEM2celFDnpF/SXdmuaWtibTtYy86Ec3oDl1\nvyEl3OwvI9/Q00O30TF4FjTF4AWH86/0LFhsAKKT0VCGz4S69YeruZHQCA28\nK3+iJnFFHhKOfceN9aB8SG/gQZcyfTMVTrcMgPuJLQhyfUwhbuWzUxxfbmZM\nOR6MibSE6Kkdp9cZkb5y/DK4cbN3w8xllIs2JvDzRFXIaz9lq14CG+SKOA2A\nGARzHgpIZSyXeHd42x7xjxFWBauZGMfDlUBwkhyZRyX6qdLW2AVZhxBPH4Tb\n1coNXq23IoHahMDYz1IyDIqwXaO3Db14ydL7arFpCKIGV685YOZGuAB38q6W\n7X8260wEuElC74lJfEUVz55RjMoNdtDeYFRE8H1o3EMYBvP4tv/JeB9JLH1Q\nOKLBMOpc0+yrsZ6eZxQSZtaTP2ehg3vsGw6npG9L84WZZRr5wwI8RsdidKTX\nb7AXTDOWDt6HpyJnN2x8toz28aCHrquRcE6bLDCyFI1fOmRSvJK0LJXCTl92\nH+QAHmkL045sj+7wuaxG/xK7asFz0erAWSS/aXNnp/CJd3PW+aO3VW2YS8os\nXTyi\r\n=J6vj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"1bb5dced069640b6c1bc2c97a88ce8397fd0e3be","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.2.3_1556290346860_0.7186819826296751","host":"s3://npm-registry-packages"}},"5.2.4":{"name":"virgil-sdk","version":"5.2.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.2.4","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"32930e1578dccf3b5c50006dd9b12be752c91f6d","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.2.4.tgz","fileCount":74,"integrity":"sha512-WnnsGcc1OTxZKA1cmhNDlHU/0fny2X7uUwVyUxKa2/6osFX3osdNLOaaaUt2GSFpZJL7ycfOmXAXdiCA4IZ+7Q==","signatures":[{"sig":"MEUCIQC0ZjI5qrANrLYZGFSd4OCahlyNrzlKZtiyEm/U3zxMngIgGi8pFeFXnAHx8Tlg5ZGP22xZ6ZZK2ClWqb9rJs4VPS0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":931353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+QzGCRA9TVsSAnZWagAAQfoQAJXl0TMjYzvuWfdlfIJR\nSeU8GL7RfDQN/JU10AoGGX8YiDtD+6cSgmmPoS63DecEQ+0oWthsMBjDmgND\n2fIZ09jw0/ul5O52MPNZ8hrNlrLuVpEZJicWQdN+/ba5waUZ+Y4dfYMRJOMC\n7eTmvqpVLJqKUFrFEWHt8uzaDLSkC+3jo/naDR50py1u8Wqk7f0SJj3fXgTH\nKxdruowgR+eeOpb5EZ4EgXTlQMvdhJYM1OJFokEPOsNiV/Wz1/wIffInAwSp\n06CkAZTKZ35WYqxf9X4F2Pg/KbeMlagta85INFsmWVV8QTro6l+nI9zvZcgT\nrycxaRiSLuYFNiKTOIc5cfr1UWNU7ySBL4b9fCzHML7Pb7A/Xaf8XgDCq8nV\nDbVdHhT4tW7HatPxD00X2yxaeYf4iiO1vZyQ5+X0yXP6PkLYtSyblBMcG4YH\nVGIc1JpKK5Tz11uqxaIDzwIY2y6t3wUpE+n0CWfsOyQfsSWT2/+3Cwf837Hm\n30qm9cs09S77YMnogbzBaZDwzJX2r9AHX97281Dx8c7P5CMfm0xw3lZPMpEB\nZvC9kab8Y7i94dsMkbDtracxgjB4Yk1g6ZCC50e8JXAYdvAViTpzZ/vNXbo2\nkKAQZ/+vcFCdnCOclud+4cx8EYU1kKcNMPbNuZjXm5UdVfZDtWcsAC0HxylQ\nXmAG\r\n=hwF9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"f677c806b66ec48dc10b6f86f7718f06d509873a","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.13.0","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.2.4_1559825606143_0.1252412167903545","host":"s3://npm-registry-packages"}},"5.3.0":{"name":"virgil-sdk","version":"5.3.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@5.3.0","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"43f0233a5f9691051a123743ac66fc8e2522e9f3","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-5.3.0.tgz","fileCount":74,"integrity":"sha512-Eq/wtoisvQ02I6FpAJ4xm5FGVgKSPSbaxLlmzTuKXbYMwotqgVrFL9qwHrBKo0icC2Apgmbz3/1zy2ciyF+GXw==","signatures":[{"sig":"MEYCIQCxMAjJX0Gltp8z61p9dpO03GqPPYmzOoxQN8hx4d62aQIhANYQT+h1Qjgf7KvOVBjX6xrKkqnqAgQ1zl6JdPVVo/0N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":951788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDPAACRA9TVsSAnZWagAAt1cP/R6D41Hb6qa94n9gZ6rM\n1qKSNznMxOgi+MfHer9Pd4bAsPzhVGK+m4AWwhx+gTi8j6cZRqzekuI9olQX\n4aJwSPR8a4ejjLFeXHWZu/N+zhp12T8gdWaMIOY9O65Sqj2rNvaGkaP9Uk9Z\ndEb0URN9iQr9z2+DVZTtcANJFgjC0dbnI6rJNuOZk8JHa6QwhOAy5M9czYyv\nzdN4om3Lijw0YLHF/FBciK2ZjhgZGcxKtuCVksG+Neg63yGacyUAyQbv2yyV\nmxb/ByoquWTKGSr5kugRx+VDhOpuMCqaKaUbDz01mw658WMLR6Rv6fG0xUPY\nurcdRL/zCd0GG+2ZtxxNC84P89Wt5zZfZd0798YsBpymDjSQ77dfUMyUq/Ss\nmhLL36cNzujbPCz9z2/BxF6CUdzxX2m0QrUsn7kTcKa9fvmucnVRgV+qtgJr\nA4WTY5GnxXzPNUD6nrMrXijvz6UDT6KX8a6xc5yJGKwf2ggPOawubXwNZ6qv\nY6oyXXl+PMekhQ2+PRKM8iaJ0eimuEYQ4E5VtbAp2DANkCekuH3dnk9UiW+b\nqY8NUqyqRzQOXH7DaRcfuHd60RXjaDOFukQlWvpQjkXBuKsJ+3XVktX8KwDo\nwsP+TbF+/6SF72LTba1xwXTLI5yDZiT58W0C5El20gimbAEa+kuyZY9weyZY\ncRVw\r\n=jJ0U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"83a58a69ff18c714a2b881fe7692ce470bb417a8","scripts":{"docs":"typedoc src","test":"yarn run test:node && yarn run test:browser --signle-run","build":"node scripts/rollup/build.js","version":"yarn run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"yarn run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.2","fetch-ponyfill":"^6.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.1","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^0.67.3","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"^3.2.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^3.1.0","rollup-plugin-inject":"^2.2.0","rollup-plugin-uglify":"^6.0.0","karma-chrome-launcher":"^2.2.0","rollup-plugin-replace":"^2.1.0","karma-firefox-launcher":"^1.1.0","rollup-plugin-commonjs":"^9.2.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-sourcemaps":"^0.4.2","karma-rollup-preprocessor":"^6.1.0","rollup-plugin-typescript2":"^0.18.0","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{"virgil-crypto":"3.x"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_5.3.0_1561128959695_0.5002000044474544","host":"s3://npm-registry-packages"}},"6.0.0-alpha.0":{"name":"virgil-sdk","version":"6.0.0-alpha.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.0","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"45f99915558f7f70adb8708a5b6e6b1628ec41d2","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.0.tgz","fileCount":53,"integrity":"sha512-P5BnTRkf4SECrfTY5J/pcCANIjQDfjsuugX7Jlwy5WFOChPOtF+yVO941MpITyMz8ysAK4i+PLFT4Hku9OC+Sw==","signatures":[{"sig":"MEUCIEswXnRgzFUJKzcujLMOvOjkqv9wxZtRuf7MwfXj0WnFAiEAvVVXv/tC+yxllW4er6Pl6/MsGfe8EMRaghnydvpSsQs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":494315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdb9pDCRA9TVsSAnZWagAASvQQAKSqRTCHqoSPx7k+Sj3V\nHFCynCGVkpK5EMn9gxMfqru4z49si6QBVAQEqmsOjLYmnASKsOPCa0oMLE1J\nzhzcCKeHm7o+MyFAFzW3wDnoEWClmieLQ8BHYy1CgkhZfL2A2UzONZD0s6ma\ngG6UL8JJSEJZh9wH0F9X3spjzVWL2K0n73ip4fAsyU3oOYtdyrxHeGOpRQqe\nOf42LGisbTfdr1P+iqA9yzv8pNfFoImjWijslPxm2bviRvNCO2TWVvL7L3Nq\nEPZp1ymePmuQ7s7P0N41k4pqLhzhhq3g1UsSvCDDo+NMBRk0rsMAEfAUjd6z\njz6kJdf5maTssttvAMCyzMmBjI+RZUiMVNMG1Oc7nIayXFm7uyLBrNTIv2bG\nhXF6olO/QrXKrf0rwBS8u1QGlxNKHpomCr+xruILx/2kvPqPGjjHdWl1ZS6Y\nZJ8RJVy5u6wmMYLP8NMWm3Y/l+MAKL6W02J1orHPLB8xksWXVyLKe5+E+c/A\nF8ULRZ7qLmA3gAui/v6cS5afpEPo/5SQOWh74Sv9Ggf9LgoLIB0vCa0oxPbw\nwcAJWbC8HoFEU+oIyiVz1VqPGsfUr5UPTAcgjaqaAwWxxOYp2PfN0s4nI0OJ\nz1QSoRlxPcX8tqrJwFG4TepKTeXqnUFWQRw1wK1f3QmPX53badXdzz9EOpNl\nVA1G\r\n=kYr5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6 which is a pre-release version. If you're here for the current latest version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto@next` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto@next` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@next/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"c1124825fe4e92b98511ce9cbe0173a56107d13f","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"next","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.0_1567611458647_0.620137689916517","host":"s3://npm-registry-packages"}},"6.0.0-alpha.1":{"name":"virgil-sdk","version":"6.0.0-alpha.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.1","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"54b274d4079bebed7f157aa913d4af40f5fc58b8","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.1.tgz","fileCount":53,"integrity":"sha512-YUtQui4CDmpZGzRFhyWl+eqpX0DJgiYChey09DV/uaHkS54lqUg3sErBJLbp6Kl1hfBS1H0C1PMxa0ptHJ0Vxg==","signatures":[{"sig":"MEQCIG6E9kECEySxSZXY20iNMemQfoFaQ75baOVRVETVsnEvAiAVd+wFKwTcbnZCdfuUAr2xCrDcwlowzIObDzRJ1f4kWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":541880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdci8ZCRA9TVsSAnZWagAAWUwP/j64NSWqHxzmA6sO2PaV\nuaaa5ITeRtbufxj+ShdUSw2ClhLXCtACoPB9a+yACjPSY+LebeHPHDDI/G9m\naXlcozZDy1+VMgWWXfN8CeoDztFTIMKwoFjI1Ibi1mJ9P91F6uvKSvI4840i\nwEOqUkNI5yvpbsCra33//jL3QH68Q58ok6XxVR9xWxj5AowujlL7pczp/oCL\nEQJIymswbug6E3M4MzIsrGIjU/vLD1rnuJi1ikcYFl+lhkMllT0h3V96MqQv\nsdVALBuP4cvneOITGIz+pV/t/7DEHyr98ce/ex/9mZX667ADKZprpFqF0ahQ\nceAny9okPRAOD/SP788P5hrMIOecbmSclhrscd/rgKdXKz5+KkaAhBGX4Ywq\nOW7AJejAUGUFL2+IJ+xXaE49O179o7uCWyv8MAbOupmNnICmWNkoPiOOy4qr\nEhgCrZXlPZKLGEhKoGn/twdfTds+YaIuAoZpolRUuVVoDn090tMRCN42mpfI\n3hmKwcW1bWq98VpmR3ey0Dp+MRZcl8eLn9ElhW4NFxb/7sF5A8PXsfEL4gMY\n8pBDySkL9GoqWtRRK3HhgJZuN+0jZC7j81YjYVxU5OXRfV7lEDX2q8dSbySJ\nFoY65BrO16trFLUW2luK8Y4v7D/boqnuYg5HCH5mHo6fDfbt1MdBdTdaBnST\n441G\r\n=G+Ni\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6 which is a pre-release version. If you're here for the current latest version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto@next` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto@next` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@next/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"2c08d08acff487b650ab62d9d191647a1df2cb36","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"next","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.1_1567764248709_0.24001118335560423","host":"s3://npm-registry-packages"}},"6.0.0-alpha.2":{"name":"virgil-sdk","version":"6.0.0-alpha.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.2","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"40c210cafc3b4964252ef56f97588f269fea140f","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.2.tgz","fileCount":53,"integrity":"sha512-DAU0KJH76RCPxSNL89P5I0XaHVX64K/jyEnr7UE8w+dEq5kZSZLKqZakqoKt2mIDcqyt5v5F6xadaa1xtWZGpw==","signatures":[{"sig":"MEUCIQChXINjP2FeKcMrGtJevd+T6djV5P58jEjcB3WaUlfmeAIgIDmwY0ImFgJpVIf7eChm6s/dl2huYiZ7KxweQP755o0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjLOnCRA9TVsSAnZWagAAGuEQAJ+epYGg2eiHvScB0WUX\n0PMG25eJdJNrVwZiZl99DutyxJeeN2a9Jgyq7SCnCX7vxqsJq9aeWnnZTYVI\nK0xuQz+qpoXUtOHgJ/OdjfC3Yi3SZe0eQeD0O9rBdY81H8YzGLjmyQ6Shp4h\nWSeziZr5P9jewv2nx3xHZw/onPgBZBe+ayBajezz4L4o6LjZ3C+V1okNrQF0\nZW0z2i3e4Xhq8p6Fb9NNmXDxo0ZR4HZQlzKg7+inl8nRUFDm3zSsPCTgugUI\nwmvKrcYccThENOxDyrwpdU9yB+//IAqtGO1/qeDF1L32vYjzbH3qAP+UtAhw\nXi/fNX5dEneKaXUcvfpTQktHRFaJlzQ7GX6OapR1webRQarjRRUxIzA2RXnM\nM4+e5hO9Tfe66UDwwUqLJQ/nSWTRd0Tsj29d+3KwioQbrO4MrILRNNJF9AJ4\ns3byzm+3vY+XLgGMifoJNBZwjPwQXVzbZU5P/hhhok1UIdfSvpuBG6vKo0x0\nZ9YhJBvMHRtpew53e7PQSYPI3p3Lomw4EKvma1iN9kYYfTpd19UiO/eYLQRf\nGWqw6mesLlYRcpzKUrPdAd5slDo6Va8FHzs/ZPCfBHKZRdC+rKDFyUpDke/j\n28mfOSArEbXAE/kHZqC7WeWbk2vUw3wdyPVp0ZWngn18vuS1mDX3/T03gpV8\nveux\r\n=8Vpw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6 which is a pre-release version. If you're here for the current latest version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto@next` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto@next` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@next/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"2a4fd664e0cf534ad3413a286eac8251bfea6cf7","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.1.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"next","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.2_1569502119142_0.8266246105773101","host":"s3://npm-registry-packages"}},"6.0.0-alpha.3":{"name":"virgil-sdk","version":"6.0.0-alpha.3","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.3","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"e3e4e32e30e04a9009e22433836b907b61d3ac91","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.3.tgz","fileCount":53,"integrity":"sha512-/bMmsW8hDYXwvnlomIvx/rguv6UWW4C+2die7SvetXARt3uvullM/89WJeQekdDVaC9ZvlM5cUuPMGXab/n7CQ==","signatures":[{"sig":"MEUCIDt3IKddldHwlEZUg2uZ+xu+lGjYxRooKp/ImgFOEXYRAiEA+3jjVE6dtaRK6mWBoNyNpFJ3dS+T0q+d8VbiiDIUmuw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmwmTCRA9TVsSAnZWagAAgdkP/j2sWsVx87mELotHSBVH\nbf22UVS5I9Yy+ZUakG6Qb7y2w8fOYgTmcRGUM8r6rVg56mmeagQGmxoaWM+h\n2gJiDSOzZFXez11HfO1ecVO7EasSPkjD05J1cjmN7QiS2XMn6za8pwMHfUi7\n5gtZad81YXCbQak0XnVXvJOS16biy/q+xDesPVs1heu+ydJyrs1qACSYBj1D\npa3QYHDwYGf5JlyynnSq77zbJq3v4tG3lFwDJ7JZ4EtipmeX9uRnX3YX+iaj\nHelzR29I1DBUz7nJP+eALb8wsg0iMGXyu/VFiArC3amtnYgAf8i9YyqP2de5\nm7Fpi1JQVaII2HE6DIa1t03Vv/pQf4+fTcw0cgbcbKhvEgvdlb3XuphSbtBs\nbyPg/ztc2kzuwD91NktY6Op4BdwdwOTUIUaKkiQ2vKrpQ7Mt9XFfKnPnE13d\nr+RwF2AckwTqXJA01YgIvKRHEgSvg/SUjPrAYJvY+uiB/oZI0dpcL0s9k8ZM\nsOrDCzKTEadKEQDvVH4BYcicNY3+wS3P6QU3LLmREmRTLRWtMqufLZzioNXW\nmzEHg/BU9b1r2gP1y+wkkqHpf2e3kcMH0nCvQrlSVElKs/wOMGOSjf75/BUd\nnNQF81vJv3CvwyKzNgoUnqPCtivvZciync8SoOiL88Ww1O265mA2IKNZkqfx\nTjWa\r\n=7vlq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6 which is a pre-release version. If you're here for the current latest version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@next\n```\n\nYou will also need to install the `virgil-crypto@next` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@next\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto@next` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@next/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@next/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"1d0d9eccad81833dcd01f1aaf7497d4352a4bf87","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"next","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.3_1570441616708_0.8325036942198738","host":"s3://npm-registry-packages"}},"6.0.0-alpha.4":{"name":"virgil-sdk","version":"6.0.0-alpha.4","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.4","maintainers":[{"name":"sun1x","email":"s.nanovskyi@gmail.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"d01f05436b3a6db7452c9d5b156fcf4a4d28bc63","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.4.tgz","fileCount":53,"integrity":"sha512-jUpLizeDS/z+I1rfQFofOdyYjTrBU13vTg3SAS9rdodfzCkmvzBKEYYKsG6H47IigNjTzvQJ1wnFEOzJXDQppQ==","signatures":[{"sig":"MEUCIQCVxCrUIf2sSPDdskelPZnSoHF0j2Y2NYqV1xYrxWII1gIgVYUxqSwYGM5CIDd5Jrt44ocim9n1j1Dtv7wZDFjRmzI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdndOmCRA9TVsSAnZWagAAo/kP/j9UAuA2GHIlePSvQF3r\n3Ap4jeuRDrl+Cy3t9bf+1BxU9vxrhesK57yvj1j5ZqU2VuZP2TrI0po1uzEL\nT5o9IipoY2J+vVzzSIq0gdPyZI+hGkP+FLMV/CoRjSEtuBkMGcrS+6yM2w2G\nXUslgK0ZMicDCbdhrVSv83LNceXbmJQymV2yZgG/DRDH+kVINibKTqE5LmTh\nh/SUDYYukyiOIsAWIEoqCfd/OJszqo52fcs4nhqjDDw6XeDD6pYVHrbW3J6q\nYrbKUSl80ia8T9GXUJk+iQ54prQK6qMtDpCV0cePA/d1tepocA31eSGxTF+8\nIn0bDh3T24ym1Tv6vypE4wJZX1qiIur1gxZqyfHLW/uFqHivffSieTD7Dp5Q\nlhmZAZPuifA7MP64gKtlMi1woe9n8dODb60eFS+SKT1QcBsFSnNa92q1Ekym\n931mbVha6OA5jFXHskYCwilUNrQg9mpd6cVyuODkah74IeoZyCnuFhnESxLl\nCDjGAMHS/t0wmUEcKT37D1sAj1vUwf/jefSTGUAXovC9f4dfLCOvOmGgtZx0\nMvvwqFcGiwqtorraiE1lbpmDd8kdOyMwsRHDI/diSryPL1Rv+tQ1wbHxZNj1\ntNntDY8DYuA4umRtMcECeEE/RtyQWDYjuoRL4zAM6jfA0D2KEtBpHdOZ0GMP\njzP9\r\n=Dtj5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6. If you're here for the previous version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@6.0.0-alpha.4\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@4.0.0-alpha.13\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@4.0.0-alpha.13/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@6.0.0-alpha.4/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"e065a48c7686aad5290093a2c4a68ebfed90f9e0","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"vadmin","email":"support@virgilsecurity.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.4.1","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.15.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.13","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.4_1570624421695_0.8460966146134805","host":"s3://npm-registry-packages"}},"6.0.0-alpha.5":{"name":"virgil-sdk","version":"6.0.0-alpha.5","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.5","maintainers":[{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"eb7b7483af4a2dbce6c312d3d83d0dcb373fab41","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.5.tgz","fileCount":53,"integrity":"sha512-gtXxQQwRqNAvcBu6S8KebkEqFVfK1UZeH01GsmDy0391Lry6OPNpGeVNO0hGd83cr2iNs4Cnoq9Czo+mT0lDFQ==","signatures":[{"sig":"MEQCIGe5AMxmkUbKB7r7eZWNEUaAF9Od8Wg7A7bzyYYtyIKDAiB/VJW3EIYkD0LqKpEdz9M5E2IsmrwyxVOaQQBmkz1eFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":543108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpcMCCRA9TVsSAnZWagAA62MQAJRfXaadtYfdxAmLDYjd\nATBumcwjdq+hSlg8/LHnv4fRhOnLkArS0l4hZjYAFQKiXVUGWHpGVJvahh5p\nBmhlEfCeMYAdebC5M0m9WsVE/gk0Ph1EYDotNBLwX9xCNS47OpdTzGoORvLY\n6v6bYLEsFhKkcEa4EW1+LiG50niz5vxGP/jxriVLNC2ydkqWM74DP5JHSv/r\nOPQMAk/7HGeQk7MwfBZDvq7I3pMC7s5nXg/rIYBfeF3qPDJ+OsaXGf0uJ4vY\nSdRDgKmd1sYb092+05pal8YVdSaWeKrxbjzOorfdiBphd2rD34wKWl/tDZw+\nHD5dfc9Oa2VShG4+2byQxX5dDlry4Lv1LUlSnA2qgyWIbiUHqP0RowQOJx7G\n1G9icMP46eh6xVfwpCAtHWZNzkgsFuWd5i5oyKsVUBMgtMus6NAbxcHbwap3\na1uv8JRlv6uhettFdDEZ9nblrChXTKnpBaO+lCZSmNtwQ0m9cqYZnEDFmwQt\nncEAjZt85r6HB2mphjs4QxsIFbH83GM43sP4+C11HvDdrK/Wyhny1R1jieqe\nXltX7CQ3L9fZs96TrrUrQHqaZxzTNt5GzHk42oYe9DxVT9mm+FoYQdWRr99R\nJuqsl3mxNuRmKjqL1pBbSBdTgi1fEUd/rW4aWFBMgbJcNl4MqGUcVnYsEeVB\ngyWQ\r\n=Dl5b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6. If you're here for the previous version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@6.0.0-alpha.4\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@4.0.0-alpha.13\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@4.0.0-alpha.13/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@6.0.0-alpha.4/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.save('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(\n\t\t\tvirgilCrypto,\n\t\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t\t)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"5b7d87849e3daf2943c7def5e5ec9852e2ef0a6a","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.9.0","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"10.16.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.13","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.5_1571144449905_0.7106331759215299","host":"s3://npm-registry-packages"}},"6.0.0-alpha.6":{"name":"virgil-sdk","version":"6.0.0-alpha.6","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0-alpha.6","maintainers":[{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"}],"dist":{"shasum":"3cbeb191ecc4e831ff172230efe6cf32802b52b9","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0-alpha.6.tgz","fileCount":69,"integrity":"sha512-NwfY1ZfuThN6rEa8mvQxa26UGCNCzkmp/h2GJnITibPvDJ5NCENbIBceQN2++JjtmcLXOoHLQsneXxVDKjRnZg==","signatures":[{"sig":"MEYCIQDWrNEUHQ0qyoc4ttTwvWj/VBnMKDnTOUHuRHCspQiv/wIhAMbweERM4RWXH9fiTMZJ3Y9oXM8XUtALkYUuZoLHgsUk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKs/6CRA9TVsSAnZWagAAK2QP/RV9EHdd7GB8b/u3OkV6\nO28Mr88SUkurDAU4avY1+6k7tz/ul0YNvE6vMVE61lpqrgDGsSdMgLDnDxYQ\nRgGMv5e2Ow2FCCKD/uoJ5wYVZal+fIDFAXtPnyv2A15eRqHcqj51VHCm29Tr\nRcjmdiocwiwa5pjM1YzLdWJMJu2JBGvHF7Nh5kioV1jo5iB5jjGlvYtzJkdQ\nWNR99P8pdRKl8XqAD9n6nM1bZvRNo28KQHxc2KpSQ9SWj2TepwK5XOKamm2f\nQugZyr8/dJPj8yeXD+RankEP9ICrllcRatwN1hfKjr5EppNJi6dMTcqdXY2T\nHutZkctboEFac2sqUhdieTeOKDZPwU0AyQPTh9y2ygBnQa607IO7u29oUGih\n0/OMQ5ossu/eLBzrrtIX4/sg4W8fpSLs7OppZHW/4eDORfrfU7RSQtx+GoRi\nUez4xFAC+UdzXqoLRC1Ubi+K3j2FoL/GckjIntWHeiWwgIFpfCsurjcHCZZu\nphHRhARI0+dyVzl48bfN4f4/dRxAcPQvzYXAlf+HdZpLyhXlTgr3Zbq/DCbh\nw7Sg4tKcchf0U4/XhxNxJbF/pLjUxb1HsIrwS9kJ4Z+1OKSzpipd+j5hgln5\nq9e2Zoi4GRE6mBFWnaRiQIs/sO9ZIZJQt2RjnDcrjp0LmwX968kCDKKUYQf0\nTQOT\r\n=PZP/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","readme":"> This README is for Virgil SDK v6. If you're here for the previous version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Security JavaScript SDK\n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)][npmjs]\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a>[Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity.\n\nThe Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end security to their existing digital solutions to become HIPAA and GDPR compliant and more.\n\n## SDK Features\n- communicate with [Virgil Cards Service][_cards_service]\n- manage users' Public Keys\n- store private keys in secure local storage\n- use Virgil [Crypto library][_virgil_crypto]\n- use your own Crypto\n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk@^6.0.0-alpha.5\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto@4.0.0-alpha.13\n```\n\n### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@4.0.0-alpha.13/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@^6.0.0-alpha.5/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Usage Examples\n\nBefore start practicing with the usage examples be sure that the SDK is configured. Check out our\n[SDK configuration guides][_configure_sdk] for more information.\n\n#### Generate and publish user's Cards with Public Keys inside on Cards Service\n\nUse the following code to create and publish a user's Card with Public Key inside on Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.store('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n#### Sign then encrypt data\n\nVirgil SDK lets you use a user's Private key and his or her Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a Private Key from persistent storage and get recipient's Card from the Virgil Cards\nService.\n\nRecipient's Card contains a Public Key which we will use to encrypt the data and verify the signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n#### Decrypt then verify data\nOnce the users receive the signed and encrypted message, they can decrypt it with their own private key and verify\nthe signature with the Sender's public key:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n## Docs\nVirgil Security has a powerful set of APIs, and the documentation below can get you started today.\n\nIn order to use the Virgil SDK with your application, you will need to first configure your application. By default,\nthe SDK will attempt to look for Virgil-specific settings in your application but you can change it during SDK\nconfiguration.\n\n* [Configure the SDK][_configure_sdk] documentation\n  * [Setup authentication][_setup_authentication] to make API calls to Virgil Services\n  * [Setup Card Manager][_card_manager] to manage user's Public Keys\n  * [Setup Card Verifier][_card_verifier] to verify signatures inside of user's Card\n  * [Setup Key storage][_key_storage] to store Private Keys\n  * [Setup your own Crypto library][_own_crypto] inside of the SDK\n* [More usage examples][_more_examples]\n  * [Create & publish a Card][_create_card] that has a Public Key on Virgil Cards Service\n  * [Search user's Card by user's identity][_search_card]\n  * [Get user's Card by its ID][_get_card]\n  * [Use Card for crypto operations][_use_card]\n* [API Reference][_reference_api]\n\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n[_virgil_crypto]: https://github.com/VirgilSecurity/virgil-crypto-javascript\n[_cards_service]: https://developer.virgilsecurity.com/docs/api-reference/card-service/v5\n[_use_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/use-card-for-crypto-operation\n[_get_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/get-card\n[_search_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/search-card\n[_create_card]: https://developer.virgilsecurity.com/docs/javascript/how-to/public-key-management/v5/create-card\n[_own_crypto]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-own-crypto-library\n[_key_storage]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-key-storage\n[_card_verifier]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-verifier\n[_card_manager]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-card-manager\n[_setup_authentication]: https://developer.virgilsecurity.com/docs/javascript/how-to/setup/v5/setup-authentication\n[_reference_api]: http://virgilsecurity.github.io/virgil-sdk-javascript/\n[_configure_sdk]: https://developer.virgilsecurity.com/docs/how-to#sdk-configuration\n[_more_examples]: https://developer.virgilsecurity.com/docs/how-to#public-key-management\n[npmjs]: https://www.npmjs.com/package/virgil-sdk\n","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"devEngines":{"node":">= 8.x"},"repository":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript","type":"git"},"description":"Virgil Security Services SDK","directories":{},"licenseText":"Copyright 2015-2019 Virgil Security\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.18","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0-alpha.6_1579864057466_0.9079248488768459","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"virgil-sdk","version":"6.0.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.0","maintainers":[{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"dist":{"shasum":"f3e9b6eb2d2f9ee8379e761389317377c542bfdf","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.0.tgz","fileCount":4,"integrity":"sha512-UdCJ205Kjej/hSu6UNQ364RAVECoP7A2EMiWF91iNYv65Pp5AkG1rop9oQ2ji0wtB0sYNzDtuudmKILIps6gsQ==","signatures":[{"sig":"MEYCIQCYm8Lz0qfWNPh/c2hYq/YoylOJ+jxEdROYA0mnbx6BMAIhAJ+p9kNPlKRAZUUkGA+HFOjVjDTBaiEZmHz2nEwJaghd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS8qgCRA9TVsSAnZWagAAZgQQAIcz29Z1ZdMKQuuMt6/n\nG1JMFtEdV8GB0sM/s+csWxPDAgCa4g2w/jTlj9NQk2LKRlSU1ueBp9etPeiP\n1rl5mt5NpqZceIS6tb0CkO5oQgg9fhN23oCRPtkluKf0BqyQTFSoO9qXtemt\nTzstd9zlQe2EJM9qzHGMir8RgEQa+qGwKyVHPKdjb0eAJxPHxBSgSVqRjYAS\nIsuDJ+uH8tPY5Anj/3qqyctM34cA1uaQdKmnVaeteODNDu4p2XIGxTD4HomA\npYDpPaGsqBjgCHbrhZS6tuWvfDuTZ+FZd9NwgNURWfJtLJLerRoVnYCYn18M\njjFc0xEgQTl09M46DEqWwXXXPULbNacrV9gUjCQxDzdOCho2EwlGuE9OW9ws\nU7HCB2jwCSt2hR38g7ilSRgn697h8X8MUzVRqJ+wfpwFb/o1O31SmsFjUetT\nqP+hQf+5QEDDeRBT0SPKpf7nBNZBij90gHan/+wRlPLcoE11wCcsx3Jmw8Mj\nH67imNZOnb0RzoItWM9ngVqnbLCxpEod7YkcjspKCOstt/qXm3OXgQsSS7xX\n9Yw9DCLdfTdJv8L11lAOuvMZGssPX/NxKYa9I53UeDVqiVN5E6zgXgcNJ2f4\nicweWSSv5Rd1VyrplrrElhZsb/16oYLNFhDSWsGE8hJomk9Y3sv33750z/Lc\nBSmx\r\n=p0iH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"repository":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript","type":"git"},"description":"Virgil Security Services SDK","directories":{},"licenseText":"Copyright 2015-2020 Virgil Security\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.18","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.0_1582025376205_0.573984638655187","host":"s3://npm-registry-packages"}},"6.0.1":{"name":"virgil-sdk","version":"6.0.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.1","maintainers":[{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"vadmin","email":"support@virgilsecurity.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"dist":{"shasum":"391bee846e9198dc12f7dc44ccc28c2d184bd791","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.1.tgz","fileCount":69,"integrity":"sha512-0aCkWGqMY+d7gIFOzcJfi50jj716HEINPXm9gKvPXddrsAM4qWYpTSRtv98ZZTzvRoEkA4jfAF+JFMbZO0aZew==","signatures":[{"sig":"MEUCIQCBqvtWg1o+SAhn0FvvDtNTxtjvwDttZOnCVRHTQ7pYVgIgMgQosjoBxP8zxeLkOtP1o4yLCVI5WYxIya5hO/c5dtg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeS9MeCRA9TVsSAnZWagAAgNYP/Ajhvqm2kxneSYIfzPFP\nNDh6q0uPboXWENrp34q21qaIbCLk74jBF4+KnSg0bqx1ylM+/2TYpXNXvFy/\nAMoPERj3dOOPBI6F6pVX4lpBqanSuP9EFBwkVVus3m/aR1GlzzwExmYUUDG2\nnAS/EA1CGhjVwQjdTzskiwqbwsj4zh2DooLlh6k7TdrF/JCm882rXUNCzOZP\nevARwMQsuGA9S5qL8CjY2KJXgiAdDTkNsrNQFhbgJ/P77ZYvgUF2FwdWKTZL\nswbKUx8EY4eGMtsbG5yuOc2nKRsNMosS1H+klGLB5YTE1zRwvY/EKBrHMhMq\n77olssarne7/Xi8cNHtskHZmnaooHfkBVDZgNG81pLRN4lEj1EJe1AQb6VIc\nkzDmAHoHub+dKIan4iET/CMojsmbPXo7XA+eZWrsEKBHtqGB4ZXubUtS6iqw\ndVin+LP21BY4qAYIquyPis2zXsFcbaHYoRJKWSgORkHoA6qYzSbw3WsZWXR2\nM6jfgwbgqb1Avd6/VHwO2REUG1MtbcsM4S4OO2x6xr0HhmCvhzm0dIjM3lrF\n7sWj8GBAtWsQpP2RCE6N5pckE2fAMNoX4oVb5yBgk2es1x1bceLqnGr/ADvv\npdvfp2F8qozbR4FmIxmclIizkWI23+aNpCAsugzT4jmtNF6QCuM+bL4vhi97\nzOzL\r\n=RqUB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"repository":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript","type":"git"},"description":"Virgil Security Services SDK","directories":{},"licenseText":"Copyright 2015-2020 Virgil Security\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","dependencies":{"utf8":"^3.0.0","mkdirp":"^0.5.1","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^5.0.5","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.13.0","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.18","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.1_1582027550377_0.5183501893382771","host":"s3://npm-registry-packages"}},"6.0.2":{"name":"virgil-sdk","version":"6.0.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.0.2","maintainers":[{"name":"dkosolap","email":"42dkosolap@gmail.com"},{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"7f3113476b2d567dd0103bf44157947863551e47","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.0.2.tgz","fileCount":53,"integrity":"sha512-hHleQX3a8fLac/bobD1+Ot49ECbdXZu+lr/3zvA537IAqEb853OFljm7w6U3j+30oxEGPy4MJ/vl8KlRhTiKZA==","signatures":[{"sig":"MEMCIGdR+4KXlJ4ftOTgk7aX9iavVa+6fTWX++364hcgQVzpAh8kg6IGP+lAHkHpPqITVZjGWy/vzX48AhhJkk8GWKW5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":548247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefgMPCRA9TVsSAnZWagAAkBsP/2UDVr0HYLVXfP/QqPLD\nF6nOxOhrH58aUEGW7Iat5wTK7OSGDXqb2H+k/U/EKUBYkHe36gDgdzrLiwA1\nvlIaOKvjcVYYwMms1TIOcdv8BXTe38zV0NxLpy4k/RHPYODvf8WZgkFsOBR+\nySsFFXIePWxdnQsTqn8KLJ1YYGC/w82igQxSP9STdacZRQp+kkfEIn/g3PRF\nkdRIMg/FeZlNSLpeolpLZkSFlmq8VWHOQ1JXxVU39Tia3QusI4UKHvEFo3em\nj/W+bR53S/2KsGQALn7y2KD1C/rX2Pe4lu2eFybSM/x2N7J+CSuITpK4+Ej7\nzEZsSBgaZaDyqN2AKLAiW7HUCSHOichQe+rE3Z/CgQJu0b767iE4NPWOCFP/\nTW5jVVUTIRE8+cLhrdUH2BVB4vs1PQDLz5EGEz5p9DRFlMrC6qxT0ZLtXysa\n2olDcurr54a5H6eghF4ycVgrlnBjGSD5JO+Jr0aItd11Qdilf3EJ9bGUaxqZ\nHlc+9exG1v/rXJ4efLbF0jW4HhcfZtE8vpw2GFCSyhENyhKyGQMnJRztQNSk\niHwYWSqfQk3Y7WI0Ww4dyp6iVtZLhJubSz9++Lz0KGteQFO3qA8AmJlsdRX5\nEnNlXsqP+SFfRroWpMEZOeCV8jUrz7+Ec52iX0mpF4cNWfwroaz6yed6H6r+\n2ww4\r\n=hjcI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"f4b9b2fe8e81dfc0bbb4f8b0469409255bc6360d","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.13.7","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"13.10.1","dependencies":{"utf8":"^3.0.0","mkdirp":"^1.0.3","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^7.1.1","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.17.3","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.18","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.0.2_1585316622590_0.8150917462132659","host":"s3://npm-registry-packages"}},"6.1.0":{"name":"virgil-sdk","version":"6.1.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.1.0","maintainers":[{"name":"dkosolap","email":"42dkosolap@gmail.com"},{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"dist":{"shasum":"725c1a99374060ccff9a340d657420412c2d5f2a","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.1.0.tgz","fileCount":69,"integrity":"sha512-fTkLHSqdhEZodBB7+yQDMsq5cYrkLFsg5K+zbY1e5OHTL0H8w053sDA0vUFP8SIB8mCgtEjxJwhvo7uxmmOW9Q==","signatures":[{"sig":"MEYCIQCKDkOweR/mBQOmHcAWbHqAjVsttRtb8p5gYwymrO9IYwIhAO/cTnwxrVH+oWejSbmXytw6AKrwiGTj43o3QHYyH7Yo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":547905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeggbqCRA9TVsSAnZWagAAyk4P+wR4/4iwAFuWI/fLOFis\nGtcjqRpGup/+L+KMtmkMzqsBtjLy057+PTylgEhf6fYCaYCk526/DBuCF2An\nyPJqLalIadLnvSY8oPGLrhFVq3drJNnrF1S4/C02EgO3XsXMYvViaTchXxVN\nnyY7k3i4Cqx/EKsAjTiRXqb9qGH7vQLdQAfi5ANtCzyUqsegr+9BNkh1h/C/\n53QvS6QPbc6jJ4JjKhBJkxtPNSlLcaLvMw1y7MU6dln/o0Cg2GS/okdHNpT4\nexsB66Kw7r3c1qmhKPo4RLJJX+dt5q0MXVMvCefUFGjLBiFkcv6RGMo5iO7K\nUl+ndMtZcRvlTESA7M1AZD+seVjyEHWGnJQ6tS7R+ZfUwuHG+INgXgbUl/C5\nt+QEttVVxw1i4WSavkkGaSUhQsluPvhEpkazbmrznPYHhApfprZDD+HoUt4d\nq2vHVkFYO5A0DeDneCRJmXwRHvw2OwtSOUgn2ImdDcwF3fzO5+lsJGq4XA7u\nSyDj3rzm6uKNCMfcYlZJN9L5ZxzZxQlrqYFTxlE37qmFRp5S6LOK0fVxKTG9\nSxW4TkSL/Wnd0UevLtwpcE7xLZgZsDHP+CvtHPMawJ67FiOL2uGzXJa8QhUU\nb/D0IB84ppLTEucwOqh+gtmAFB5HeXZN0CKLntG2RyONIChApmB7ESWa1xLM\n0Arw\r\n=XfUM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"repository":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript","type":"git"},"description":"Virgil Security Services SDK","directories":{},"licenseText":"BSD 3-Clause License\n\nCopyright (c) 2020, Virgil Security, Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","dependencies":{"utf8":"^3.0.0","mkdirp":"^1.0.3","rimraf":"^2.6.2","base-64":"^0.1.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^4.3.0","mocha":"^7.1.1","sinon":"^7.1.1","dotenv":"^6.1.0","eslint":"^5.9.0","rollup":"^1.14.6","ts-node":"^8.1.0","typedoc":"^0.17.3","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^10.12.9","karma-mocha":"^1.3.0","@types/mocha":"^5.2.5","@types/sinon":"^5.0.6","@types/mkdirp":"^0.5.2","@types/rimraf":"^2.0.2","virgil-crypto":"4.0.0-alpha.18","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-json":"^4.0.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-inject":"^3.0.1","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.1.0_1585579753970_0.6991726618020575","host":"s3://npm-registry-packages"}},"6.1.1":{"name":"virgil-sdk","version":"6.1.1","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.1.1","maintainers":[{"name":"dkosolap","email":"42dkosolap@gmail.com"},{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"dist":{"shasum":"3539bbd7e9232c595b7f0f075a4c18626f2329d0","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.1.1.tgz","fileCount":87,"integrity":"sha512-kCMYBDc7W5qD75xy+vqZmtgIi2se7wPd9fMP8OY+HJ96BAYr79CtY2nuUB9A7OWpbQf9AQpgeGiDlEAStXrQVQ==","signatures":[{"sig":"MEUCIF0ZKlAUGlLhpcz36na3vmL+tCHvWfO3BHEaOcC9ft9iAiEA3q5TXKhez7+XneMwe+trGyQFqEwPfD+Pw2he9FM+ThU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":549096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoub9CRA9TVsSAnZWagAAj4EQAJ/S8ajU5WMJkcYiAHjg\n9NbkyU29Efc8H4LpvrX5WOT8UUBN3LctEpNVX7AuMdSa0aIlWXm7OLzA4Cj/\nuhTIFy7aSszO8h11RksqZhjCaC8wfik6OUtOSQVBtPB2IgiaRXnFYHKz8XaC\nYdM5Ypt2I2ax2cAdNcpUZl5DhzkSGzB2vZDQ3u8RHJ9EpQQlNjg2Pqehhom1\nh4MESiSqpthtWao3WsS3wjiU8VKgNLkcEQCOdSueWjrqMAhdo5s6VQUJEvUA\nzQFajmcPIyh94ujgRElcHNVxsF1dyg2wpVucZBp1O9iii4Fsg/976uXRc6x0\naImpB+Xfj10QI+rgm/KxvkwlVwonvVN9ldwPH8INYgWV8giVtMqUvFqe84D1\n4qX+wV6g5eUwC2o9KR+POOoK872DB/9aF9JwoCQY+PXRIG0fjrrxCKLTnWkg\nGIn+vFM5ZmidQSoA/QPTMoIMxknHF4Cw5Zv0AM964Wophflu2ZXN/E/6nYxB\nvQ2qLmHFaoeZ1qFEpeE3G3b7S7EQ8Cu880X894RAFssp1IB201YrSNDqsHYG\nsxoBisnLiQNo989K9O0PrN1Aq4W0iNUpZ1i5vVxuLRk5GtIJ9MbTs+DwTiEw\n7h8yL/hNDzIUBl9vjIb8obBMCA+7I7shUgVd2X91yN3ng2N2wi8ZjJFI994a\ntoYX\r\n=jKiX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"snanovskyi","email":"snanovskyi@icloud.com"},"repository":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript","type":"git"},"description":"Virgil Security Services SDK","directories":{},"licenseText":"BSD 3-Clause License\n\nCopyright (c) 2020, Virgil Security, Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","dependencies":{"utf8":"^3.0.0","mkdirp":"^1.0.3","rimraf":"^3.0.2","base-64":"^0.1.0","webpack":"^4.43.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.0.2","@virgilsecurity/crypto-types":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^5.0.2","mocha":"^7.1.1","sinon":"^9.0.2","dotenv":"^8.2.0","rollup":"^2.7.2","ts-node":"^8.1.0","typedoc":"^0.17.3","ts-loader":"^7.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^13.13.2","file-loader":"^6.0.0","karma-mocha":"^2.0.0","@types/mocha":"^7.0.2","@types/sinon":"^5.0.6","@types/mkdirp":"^1.0.0","@types/rimraf":"^3.0.0","karma-webpack":"^4.0.2","virgil-crypto":"^4.0.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.27.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.1.1_1587734269004_0.9838388894961381","host":"s3://npm-registry-packages"}},"6.1.2":{"name":"virgil-sdk","version":"6.1.2","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.1.2","maintainers":[{"name":"dkosolap","email":"42dkosolap@gmail.com"},{"name":"snanovskyi","email":"snanovskyi@icloud.com"},{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"125497e4beec8ce4b4764b24d29cd201ccf55da2","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.1.2.tgz","fileCount":70,"integrity":"sha512-zvzRAzJBbN8sZlSEE0QY1Y7LCOiM6e8QOQ6CebhJiA11/CdVCE6byMH7Eer/b+tN+sQwFIJmOYG6jpsVDZ8J8w==","signatures":[{"sig":"MEQCIHDtVAzcs80Qu15r0LviaOZa/9KEzblrAkp+0m0DC2h6AiBNP59noAd96i7ERARu5BikDqC+LPwgQImOL5UsEngmjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":549491,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1VNRCRA9TVsSAnZWagAAceMQAJiVKMv6PE5iHWNBqUd6\nU/LrxgaBTJ+fOoiYQIcTBsUS7Q6f8IVpHjBcBqs4fmddcmgrgiEtW4cJOqo/\naHhFZFUcUgs4DI51b5kq1XLJVtyB1nrCSNvJ0WjONtA6nwJy8kgIkgkg4S52\njgcHmYnSAokvtJdBV/N5TYVciM2edL2aDyfzumxATk4dfrg+hXpysCT1bm8e\nubU+kVl4NWYa3kalwS09XCTS8fraE7mN4XUQ7EBArrDyU523ZlSqsKtw2c7K\nbN/Cj6gihcPUrL/DeqSiz8JHT9zFt/ueFHve4tESv8Td6JdM2AQa6TCGxRbU\nS2QDVFZ6AwSTAkzgRoqp8P2KpsrqJu8hYPGXBrQOikx77Co+YbU7/5aJLn8T\nvOE+UxRQYORX1OHXciQixbSSDu8L6IV45zTnoig7a1C1eRlV+EG7vv/xuAzA\noCLOXWf26ubIa3e0AKrvRiYcV+AXktlnLz3v15/nYS2KpNS2U7lphZ/umEFW\n3qPKqlg/0eLSOzf2azroJD1Hif/Y+nyfE7LLnthZKGJeDaiZgb0Aa1/G8bck\nKc94utp6QwhJK1mLNg0+TUDDGSsKuPavjYv4bmodeWA3X0BJ5+Ab8x0W2YVm\nG/k7sGSnbWtAn1DqAHQyyNPgZolxh5CrLNrmIEGKxSbpvjOKXAthuiPk2vzi\nr318\r\n=W6KK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"49dc1250a34f64762f39329d3f527f578614a787","scripts":{"docs":"typedoc src","test":"npm run test:node && npm run test:browser","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"mocha --require ts-node/register --require dotenv/config --require scripts/register-assert \"src/**/*.test.ts\"","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"xlwknx","email":"asmirnov@virgilsecurity.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"6.14.4","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"12.16.3","dependencies":{"utf8":"^3.0.0","mkdirp":"^1.0.3","rimraf":"^3.0.2","base-64":"^0.1.0","webpack":"^4.43.0","@types/utf8":"^2.1.6","@types/base-64":"^0.1.3","fetch-ponyfill":"^6.1.1","@virgilsecurity/crypto-types":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^5.0.2","mocha":"^7.1.1","sinon":"^9.0.2","dotenv":"^8.2.0","rollup":"^2.7.2","ts-node":"^8.1.0","typedoc":"^0.17.3","ts-loader":"^7.0.1","buffer-es6":"^4.9.3","sinon-chai":"^3.0.0","typescript":"^3.1.6","@types/chai":"^4.1.7","@types/node":"^13.13.2","file-loader":"^6.0.0","karma-mocha":"^2.0.0","@types/mocha":"^7.0.2","@types/sinon":"^5.0.6","@types/mkdirp":"^1.0.0","@types/rimraf":"^3.0.0","karma-webpack":"^4.0.2","virgil-crypto":"^4.0.0","builtin-modules":"^3.0.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.1","karma-chai-plugins":"^0.9.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-terser":"^5.1.1","karma-chrome-launcher":"^3.1.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.0","karma-rollup-preprocessor":"^7.0.2","rollup-plugin-typescript2":"^0.27.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.1.2_1591038800999_0.32561231040350247","host":"s3://npm-registry-packages"}},"6.2.0":{"name":"virgil-sdk","version":"6.2.0","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","_id":"virgil-sdk@6.2.0","maintainers":[{"name":"rstp","email":"rstptakeu@vk.com"},{"name":"ddain","email":"ddain@virgilsecurity.com"},{"name":"mbalyaba","email":"mbalyaba@gmail.com"}],"contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"dist":{"shasum":"8f0fafbeb5a20dbfabddb7f2b945987fe8108070","tarball":"https://registry.npmjs.org/virgil-sdk/-/virgil-sdk-6.2.0.tgz","fileCount":53,"integrity":"sha512-FQdU/YIjV4ui6TkW057sNlwctSOPk6f2BlmqB5PorXcumRaH+Yp4D/U/QJ20aGn6N3sSOsTpXzFohqlCxE3c8Q==","signatures":[{"sig":"MEUCID+rGKcWOjysbm3T5ZawmsAODhna1dvtQP0ANurCsHbMAiEAkWlcHjrgiXxRbFkvHljlsb5P90ybqLOcDNyieMloTIk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":507824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlx/uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRdA//VJqe13M2sFsN+ZX+BCqJCBdsU4tPl87WgEZzoSXsdNcBz0Oa\r\nkLSNVjTWm8cx3umhiCQrRyKx6yyD9oBX7FR81M1p3nB8kdLK166EleS3lmc6\r\nFD4YLyZ0vwsct6lEg1L4i75VHqIluPuobCbECCbxpjmUvJnbgrJOL4FULpW1\r\npBwxnRorhqeO59A4siE4cEfSQM/Jwtth/5YcRx3V4xDxNaCp3i/qHKyC+tWc\r\nwvnVrjZ0TVD3xKozSR9+vgORDa4M9CCOGGqrld4j4oudLTJf5csOwPcFwWwj\r\n4bs/kde+vQPo6Tx2hPcKjbVuRJISWcLv4HTvUexPPAohh+XUnByzHwzGt0i5\r\nxmhtYpliz2SpOKwDE6Nv9SACwEI7yRdAg5Ox2lsjufk/elAOGuvuIvTluWqY\r\nbzJ9VvionT/QQ50lPITbv0nlSaQbWjbhhzeqamPdpoZVy/KKIbOb/3EnhTYH\r\nK6nNysSHa15y+0HkCuBcPGn+GPinN9WnYxugw1RmhE4FeploeebTNmGYh1R9\r\nypSJxvfKDn/HC5t/NzXuWqKLk+LwzpYtaISjur2xVNtmIhqLuRZQTaYmYTRB\r\n+Ritj/YrVBHlGvKMXSjwnVI9GqpWqheI7vGivUL+B1zCpHanU56QXfSJLcAM\r\nn6Rj28m5LbxbN+IXMd3AFvyOVkn++cJPb08=\r\n=n66z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/virgil-sdk.cjs.js","type":"commonjs","module":"dist/virgil-sdk.es.js","browser":{"./dist/virgil-sdk.es.js":"./dist/virgil-sdk.browser.es.js","./dist/virgil-sdk.cjs.js":"./dist/virgil-sdk.browser.cjs.js","./src/Storage/adapters/FileSystemStorageAdapter.ts":"./src/Storage/adapters/IndexedDbStorageAdapter.ts"},"gitHead":"da5bf19685b8c502267f7cc062aecbe9607f250b","scripts":{"docs":"typedoc src","test":"npm run test:node","build":"rollup -c","clean":"rimraf .rpt2_cache dist","prepare":"npm run clean && npm run build","version":"npm run build","test:node":"ts-mocha -p tsconfig.spec.json \"src/**/*.test.ts\" --require scripts/register-assert --timeout 10000","preversion":"npm run test","test:browser":"karma start"},"typings":"dist/types/index.d.ts","_npmUser":{"name":"rstp","email":"rstptakeu@vk.com"},"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"_npmVersion":"8.19.2","description":"Virgil Security Services SDK","directories":{},"_nodeVersion":"18.11.0","dependencies":{"utf8":"^3.0.0","util":"^0.12.5","mkdirp":"^1.0.4","rimraf":"^3.0.2","base-64":"^1.0.0","webpack":"^5.74.0","ts-mocha":"^10.0.0","@types/utf8":"^3.0.1","@types/base-64":"^1.0.0","dotenv-webpack":"^8.0.1","fetch-ponyfill":"^7.1.0","karma-typescript":"^5.5.3","@virgilsecurity/data-utils":"^1.0.0","@virgilsecurity/crypto-types":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","karma":"^6.4.1","mocha":"^10.1.0","sinon":"^14.0.2","dotenv":"^16.0.3","rollup":"^3.2.5","ts-node":"^10.9.1","typedoc":"^0.23.20","ts-loader":"^9.4.1","buffer-es6":"^4.9.3","sinon-chai":"^3.7.0","typescript":"^4.8.4","@types/chai":"^4.3.4","@types/jest":"^29.2.2","@types/node":"^18.11.9","file-loader":"^6.2.0","karma-mocha":"^2.0.0","@types/mocha":"^10.0.0","@types/sinon":"^10.0.13","@types/mkdirp":"^1.0.2","@types/rimraf":"^3.0.2","karma-webpack":"^5.0.0","virgil-crypto":"^4.0.0","builtin-modules":"^3.3.0","chai-as-promised":"^7.1.1","@types/sinon-chai":"^3.2.9","karma-chai-plugins":"^0.9.0","rollup-plugin-wasm":"^3.0.0","rollup-plugin-terser":"^7.0.2","karma-chrome-launcher":"^3.1.1","rollup-plugin-replace":"^2.2.0","rollup-plugin-commonjs":"^10.0.2","@types/chai-as-promised":"^7.1.5","karma-rollup-preprocessor":"^7.0.8","rollup-plugin-typescript2":"^0.34.1","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/virgil-sdk_6.2.0_1670848493974_0.4782153660829007","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-01-22T22:34:59.037Z","modified":"2026-04-21T01:35:34.484Z","1.0.4":"2016-01-22T22:34:59.037Z","1.0.5":"2016-01-23T09:07:32.197Z","1.0.6":"2016-01-23T17:58:05.801Z","1.0.7":"2016-01-27T18:52:28.203Z","1.0.8":"2016-01-28T15:44:54.847Z","1.0.9":"2016-01-29T08:57:55.160Z","1.0.10":"2016-01-29T23:03:04.600Z","1.0.11":"2016-02-06T16:07:31.143Z","1.0.12":"2016-02-11T20:20:30.737Z","1.1.0":"2016-02-21T16:33:32.025Z","1.1.1":"2016-03-13T15:43:32.100Z","1.1.2":"2016-03-21T00:17:49.331Z","1.1.3":"2016-03-25T08:33:22.091Z","1.1.4":"2016-03-28T13:14:59.152Z","1.1.5":"2016-03-28T15:02:23.122Z","1.1.6":"2016-03-28T17:00:15.978Z","1.2.0":"2016-04-13T15:38:37.237Z","1.3.0":"2016-04-29T11:16:42.120Z","1.4.1":"2016-05-03T12:20:13.761Z","1.4.2":"2016-05-05T20:36:03.148Z","1.4.3":"2016-05-10T15:43:39.850Z","1.4.4":"2016-05-11T19:24:42.956Z","1.4.5":"2016-05-18T14:54:53.579Z","1.4.6":"2016-05-21T08:01:01.800Z","1.4.7":"2016-06-06T15:43:31.675Z","1.5.0":"2016-06-11T13:03:52.804Z","1.6.0":"2016-07-04T17:04:32.331Z","1.6.1":"2016-07-05T12:54:51.166Z","4.0.0-beta.0":"2016-10-19T12:30:18.115Z","4.0.0-beta.1":"2016-10-20T09:10:24.660Z","4.0.0-beta.2":"2016-10-24T19:50:53.255Z","4.0.0-beta.3":"2016-10-24T20:00:26.116Z","4.0.0-beta.4":"2016-11-03T13:15:14.174Z","4.0.0-beta.5":"2016-11-07T22:19:54.946Z","1.6.2":"2016-11-18T14:01:14.909Z","4.0.0":"2017-01-25T23:10:03.571Z","4.0.1":"2017-01-26T15:32:01.749Z","4.0.2":"2017-01-26T18:34:53.602Z","4.1.0":"2017-02-23T16:38:55.522Z","4.1.1":"2017-02-27T10:31:58.188Z","4.1.2":"2017-02-27T14:14:51.892Z","4.1.3":"2017-02-27T16:37:26.957Z","4.1.4":"2017-02-28T13:13:30.617Z","4.1.5":"2017-03-01T08:57:45.898Z","4.2.0":"2017-03-02T09:50:09.530Z","4.3.0":"2017-03-13T15:47:43.388Z","4.3.1":"2017-03-14T13:06:34.577Z","4.4.0":"2017-05-05T15:58:03.405Z","4.5.0":"2017-05-30T21:08:15.557Z","4.5.1":"2017-07-11T15:58:10.964Z","4.5.2":"2018-02-02T14:16:58.726Z","4.5.3":"2018-02-22T18:32:32.330Z","5.0.0-alpha.1":"2018-04-20T10:09:42.166Z","5.0.0-alpha.2":"2018-04-24T13:45:31.174Z","5.0.0-alpha.3":"2018-05-29T13:44:03.411Z","5.0.0-alpha.4":"2018-06-07T16:07:53.272Z","5.0.0-alpha.5":"2018-06-11T07:35:52.627Z","5.0.0-rc.1":"2018-07-25T17:13:06.585Z","5.0.0-rc.2":"2018-07-30T10:47:20.593Z","5.0.0-rc.3":"2018-08-02T13:52:02.841Z","5.0.0":"2018-08-14T12:21:40.252Z","5.1.0":"2018-10-17T09:54:18.111Z","5.1.1":"2018-10-30T19:01:46.126Z","5.2.0":"2018-12-10T11:57:13.467Z","5.2.1":"2018-12-20T11:23:09.225Z","5.2.2":"2019-02-05T08:38:45.847Z","5.2.3":"2019-04-26T14:52:27.062Z","5.2.4":"2019-06-06T12:53:26.297Z","5.3.0":"2019-06-21T14:55:59.896Z","6.0.0-alpha.0":"2019-09-04T15:37:38.757Z","6.0.0-alpha.1":"2019-09-06T10:04:08.937Z","6.0.0-alpha.2":"2019-09-26T12:48:39.301Z","6.0.0-alpha.3":"2019-10-07T09:46:57.033Z","6.0.0-alpha.4":"2019-10-09T12:33:41.805Z","6.0.0-alpha.5":"2019-10-15T13:00:50.095Z","6.0.0-alpha.6":"2020-01-24T11:07:37.703Z","6.0.0":"2020-02-18T11:29:36.303Z","6.0.1":"2020-02-18T12:05:50.554Z","6.0.2":"2020-03-27T13:43:42.765Z","6.1.0":"2020-03-30T14:49:14.119Z","6.1.1":"2020-04-24T13:17:49.114Z","6.1.2":"2020-06-01T19:13:21.108Z","6.2.0":"2022-12-12T12:34:54.111Z"},"bugs":{"url":"https://github.com/VirgilSecurity/virgil-sdk-javascript/issues"},"author":{"name":"Virgil Security Inc.","email":"support@virgilsecurity.com"},"license":"BSD-3-Clause","homepage":"https://github.com/VirgilSecurity/virgil-sdk-javascript#readme","keywords":["security","elliptic","elliptic curve","virgil","virgilsecurity","encryption","crypto","pki"],"repository":{"url":"git+https://github.com/VirgilSecurity/virgil-sdk-javascript.git","type":"git"},"description":"Virgil Security Services SDK","contributors":[{"url":"https://github.com/ebaranov/","name":"Eugene Baranov","email":"ebaranov.dev@gmail.com"},{"url":"https://github.com/boo1ean/","name":"Egor Gumenyuk","email":"boo1ean0807@gmail.com"},{"url":"https://github.com/vadimavdeev/","name":"Vadim Avdeiev","email":"v.avdeiev@gmail.com"},{"url":"https://github.com/theshock/","name":"Pavlo Ponomarenko","email":"shocksilien@gmail.com"},{"url":"https://github.com/xlwknx/","name":"Alexey Smirnov","email":"asmirnov@virgilsecurity.com"},{"name":"Serhii Nanovskyi","email":"nanovskyi.serhii@gmail.com"}],"maintainers":[{"email":"ddain@virgilsecurity.com","name":"ddain"},{"email":"ssiroshtan.us@gmail.com","name":"ssiroshtan"}],"readme":"> This README is for Virgil SDK v6. If you're here for the previous version (v5.3.x), check the [v5.3.x branch](https://github.com/VirgilSecurity/virgil-sdk-javascript/tree/v5.3.x) for Virgil SDK v5.3.x docs.\n\n# Virgil Core SDK JavaScript \n\n[![npm](https://img.shields.io/npm/v/virgil-sdk.svg)](https://www.npmjs.com/package/virgil-sdk)\n[![Build status](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)](https://img.shields.io/travis/VirgilSecurity/virgil-sdk-javascript.svg)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n[![API Reference](https://img.shields.io/badge/API%20Reference-virgil--sdk--javascript-green)](https://virgilsecurity.github.io/virgil-sdk-javascript/)\n\n[Introduction](#introduction) | [SDK Features](#sdk-features) | [Installation](#installation) | [Configure SDK](#configure-sdk) | [Usage Examples](#usage-examples) | [Docs](#docs) | [Support](#support)\n\n## Introduction\n\n<a href=\"https://developer.virgilsecurity.com/docs\"><img width=\"230px\" src=\"https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png\" align=\"left\" hspace=\"10\" vspace=\"6\"></a> [Virgil Security](https://virgilsecurity.com) provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communications, securely store data, and ensure data integrity. Virgil Security products are available for desktop, embedded (IoT), mobile, cloud, and web applications in a variety of modern programming languages.\n\nThe Virgil Core SDK is a low-level library that allows developers to get up and running with [Virgil Cards Service API](https://developer.virgilsecurity.com/docs/platform/api-reference/cards-service/) quickly and add end-to-end security to their new or existing digital solutions.\n\nIn case you need additional security functionality for multi-device support, group chats and more, try our high-level [Virgil E3Kit framework](https://github.com/VirgilSecurity/awesome-virgil#E3Kit).\n\n## SDK Features\n\n- Communicate with [Virgil Cards Service](https://developer.virgilsecurity.com/docs/platform/api-reference/cards-service/)\n- Allow access for your application's users to Virgil Services using JWT\n- Manage users' public keys\n- Store private keys in IndexedDB as browser storage, filesystem for node.js or [Virgil key storage](https://github.com/VirgilSecurity/virgil-key-storage-rn) with React Native\n- Use Virgil [Crypto Library](https://github.com/VirgilSecurity/virgil-crypto-javascript)\n- Compatible with **post-quantum algorithms support** provided by Virgil Crypto Library: [Round5](https://round5.org/) (encryption) and [Falcon](https://falcon-sign.info/) (signature) \n\n## Installation\n\nThis module can be used both __server-side__ in a Node application, and __client-side__ in a web browser.\n\n#### On a server\n\nThe recommended way is to install from npm:\n\n```sh\nnpm install virgil-sdk\n```\n\nYou will also need to install the `virgil-crypto` package from npm, unless plan to use custom crypto\n```sh\nnpm install virgil-crypto\n```\n\n#### In the browser\n\nThe client-side SDK targets ECMAScript5+ compatible browsers. It is compatible with module bundlers like Rollup,\nWebpack and Browserify. If you're using those, you need to install from npm. It can be added to the html page directly\n via `script` tag as well.\n\nNote that the `virgil-crypto` script must also be added to the page.\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-crypto@^4.0.0/dist/browser.umd.js\"></script>\n<script type=\"text/javascript\" src=\"https://unpkg.com/virgil-sdk@^6.0.0/dist/virgil-sdk.browser.umd.js\"></script>\n<script>\n\t// here you can use the global variables `Virgil` and `VirgilCrypto` as namespace objects,\n\t// containing all of `virgil-sdk` and `virgil-crypto` exports as properties\n\n    VirgilCrypto.initCrypto().then(() => {\n        // note that you cannot declare a variable named `crypto` in\n    \t// global scope (i.e. outside of any function) in browsers that\n    \t// implement Web Crypto API\n    \tconst virgilCrypto = new VirgilCrypto.VirgilCrypto();\n    \tconst virgilCardCrypto = new VirgilCrypto.VirgilCardCrypto(virgilCrypto);\n\n    \tconst jwtProvider = new Virgil.CachingJwtProvider(fetchVirgilJwt);\n    \tconst cardVerifier = new Virgil.VirgilCardVerifier(virgilCardCrypto);\n    \tconst cardManager = new Virgil.CardManager({\n    \t\tcardCrypto: virgilCardCrypto,\n    \t\taccessTokenProvider: jwtProvider,\n    \t\tcardVerifier: cardVerifier\n    \t});    \n    });\n</script>\n```\n\n## Configure SDK\n\nThis section contains guides on how to set up Virgil Core SDK modules for authenticating users, managing Virgil Cards and storing private keys.\n\n### Set up authentication\n\nSet up user authentication with tokens that are based on the [JSON Web Token standard](https://jwt.io/) with some Virgil modifications.\n\nIn order to make calls to Virgil Services (for example, to publish user's Card on Virgil Cards Service), you need to have a JSON Web Token (\"JWT\") that contains the user's `identity`, which is a string that uniquely identifies each user in your application.\n\nCredentials that you'll need:\n\n|Parameter|Description|\n|--- |--- |\n|App ID|ID of your Application at [Virgil Dashboard](https://dashboard.virgilsecurity.com)|\n|App Key ID|A unique string value that identifies your account at the Virgil developer portal|\n|App Key|A Private Key that is used to sign API calls to Virgil Services. For security, you will only be shown the App Key when the key is created. Don't forget to save it in a secure location for the next step|\n\n#### Set up JWT provider on Client side\n\nUse these lines of code to specify which JWT generation source you prefer to use in your project:\n\n```javascript\n// client.js\n\nimport { CachingJwtProvider } from 'virgil-sdk';\n\nconst fetchJwt = () => fetch('/virgil-jwt', { credentials: 'same-origin' })\n    .then(response => response.text());\n\nconst jwtProvider = new CachingJwtProvider(fetchJwt);\n// pass jwtProvider as `accessTokenProvider` to the `CardManager` constructor\n```\n\n#### Generate JWT on Server side\n\nNext, you'll need to set up the `JwtGenerator` and generate a JWT using the Virgil SDK.\n\nHere is an example of how to generate a JWT:\n\n```javascript\n// server.js\n\nimport express from 'express';\nimport { initCrypto, VirgilCrypto, VirgilAccessTokenSigner } from 'virgil-crypto';\nimport { JwtGenerator } from 'virgil-sdk';\n\nasync function getJwtGenerator() {\n  await initCrypto();\n\n  const virgilCrypto = new VirgilCrypto();\n  // initialize JWT generator with your App ID and App Key ID you got in\n  // Virgil Dashboard and the `appKey` object you've just imported.\n  return new JwtGenerator({\n    appId: process.env.APP_ID,\n    apiKeyId: process.env.APP_KEY_ID,\n    // import your App Key that you got in Virgil Dashboard from string.\n    apiKey: virgilCrypto.importPrivateKey(process.env.APP_KEY),\n    // initialize accessTokenSigner that signs users JWTs\n    accessTokenSigner: new VirgilAccessTokenSigner(virgilCrypto),\n    millisecondsToLive:  20 * 60 * 1000 // JWT lifetime - 20 minutes (default)\n  });\n}\n\napp.get('/virgil-jwt', (req, res) => {\n  const generator = await generatorPromise;\n  const virgilJwtToken = generator.generateToken(req.user.identity);\n\n  res.json({ virgilToken: virgilJwtToken.toString() });\n});\n```\n\nFor this subsection we've created a sample backend that demonstrates how you can set up your backend to generate the JWTs. To set up and run the sample backend locally, head over to your GitHub repo of choice:\n\n[Node.js](https://github.com/VirgilSecurity/sample-backend-nodejs) | [Golang](https://github.com/VirgilSecurity/sample-backend-go) | [PHP](https://github.com/VirgilSecurity/sample-backend-php) | [Java](https://github.com/VirgilSecurity/sample-backend-java) | [Python](https://github.com/VirgilSecurity/virgil-sdk-python/tree/master#sample-backend-for-jwt-generation)\n and follow the instructions in README.\n \n### Set up Card Verifier\n\nVirgil Card Verifier helps you automatically verify signatures of a user's Card, for example when you get a Card from Virgil Cards Service.\n\nBy default, `VirgilCardVerifier` verifies only two signatures - those of a Card owner and Virgil Cards Service.\n\nSet up `VirgilCardVerifier` with the following lines of code:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto } from 'virgil-crypto';\nimport { VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n\t// initialize Crypto library\n\tawait initCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(new VirgilCrypto());\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n})();\n```\n\n### Set up Card Manager\n\nThis subsection shows how to set up a Card Manager module to help you manage users' public keys.\n\nWith Card Manager you can:\n- specify an access Token (JWT) Provider.\n- specify a Card Verifier used to verify signatures of your users, your App Server, Virgil Services (optional).\n\nUse the following lines of code to set up the Card Manager:\n\n```javascript\nimport { CardManager } from 'virgil-sdk';\n\n// initialize cardManager and specify accessTokenProvider, cardVerifier\nconst cardManager = new CardManager({\n  cardCrypto: cardCrypto,\n  accessTokenProvider: accessTokenProvider,\n  cardVerifier: cardVerifier\n});\n```\n\n### Set up Key Storage for private keys\n\nThis subsection shows how to set up a `PrivateKeyStorage` using Virgil SDK in order to save private keys after their generation.\n\nHere is an example of how to set up the `PrivateKeyStorage` class:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\t// initialize Virgil Crypto library\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyExporter = new VirgilPrivateKeyExporter(\n\t\tvirgilCrypto,\n\t\t// if provided, will be used to encrypt the key bytes before exporting\n\t\t// and decrypt before importing.\n\t\t'[OPTIONAL_PASSWORD_TO_ENCRYPT_THE_KEYS_WITH]'\n\t);\n\t// Generate a private key\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\tconst privateKeyStorage = new PrivateKeyStorage(privateKeyExporter);\n\n\t// Store the private key with optional metadata (i.e. the PrivateKeyEntry)\n\tawait privateKeyStorage.store('my private key', keyPair.privateKey, { optional: 'data' });\n\n\t// Load the private key entry\n\tconst privateKeyEntry = await privateKeyStorage.load('my private key');\n\n\tif (privateKeyEntry === null) {\n\t\treturn;\n\t}\n\n\tconsole.log(privateKeyEntry.privateKey); // VirgilPrivateKey instance\n\tconsole.log(privateKeyEntry.meta); // { optional: 'data' }\n\n\tconst privateKey = privateKeyEntry.privateKey;\n\n\t// Use the privateKey in virgilCrypto operations\n\n\t// Delete a private key\n\tawait privateKeyStorage.delete('my private key');\n\n\tconsole.log('Private key has been removed');\n})();\n```\n\n## Usage Examples\n\nBefore you start practicing with the usage examples, make sure that the SDK is configured. See the [Configure SDK](#configure-sdk) section for more information.\n\n### Generate and publish Virgil Cards at Cards Service\n\nUse the following lines of code to create a user's Card with a public key inside and publish it at Virgil Cards Service:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilCardCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { CachingJwtProvider, CardManager, PrivateKeyStorage, VirgilCardVerifier } from 'virgil-sdk';\n\n(async function() {\n    await initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst cardCrypto = new VirgilCardCrypto(virgilCrypto);\n\n\tconst jwtProvider = new CachingJwtProvider(fetchVirgilJwt);\n\tconst cardVerifier = new VirgilCardVerifier(cardCrypto);\n\tconst cardManager = new CardManager({\n\t\tcardCrypto: cardCrypto,\n\t\taccessTokenProvider: jwtProvider,\n\t\tcardVerifier: cardVerifier\n\t});\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Generate a key pair\n\tconst keyPair = virgilCrypto.generateKeys();\n\n\t// Store the private key\n\tawait privateKeyStorage.store('alice_private_key', keyPair.privateKey);\n\n\t// Publish user's card on the Cards Service\n\tconst card = await cardManager.publishCard({\n\t\tprivateKey: keyPair.privateKey,\n\t\tpublicKey: keyPair.publicKey,\n\t\tidentity: 'alice@example.com'\n\t});\n})();\n\nasync function fetchVirgilJwt (context) {\n\t// assuming your backend server is serving Virgil JWT tokens in plaintext\n\t// at /virgil-access-token endpoint\n\tconst response = await fetch('/virgil-access-token');\n\tif (!response.ok) {\n\t\tthrow new Error('Failed to get Virgil Access Token');\n\t}\n\n\treturn await response.text();\n}\n```\n\n### Sign then encrypt data\n\nVirgil Core SDK allows you to use a user's private key and their Virgil Cards to sign and encrypt any kind of data.\n\nIn the following example, we load a private key from a customized key storage and get recipient's Card from the Virgil Cards Service. Recipient's Card contains a public key which we will use to encrypt the data and verify a signature.\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Load the private key\n\tconst alicePrivateKey = await privateKeyStorage.load('alice_private_key');\n\tif (alicePrivateKey === null) {\n\t\tconsole.log('Private key named \"alice_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('bob@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"bob@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst messageToEncrypt = 'Hello, Bob!';\n\tconst bobPublicKeys = cards.map(card => card.publicKey);\n\tconst encryptedMessage = virgilCrypto.signThenEncrypt(messageToEncrypt, alicePrivateKey, bobPublicKeys);\n\tconsole.log(encryptedMessage.toString('base64'));\n})();\n```\n\n### Decrypt data and verify signature\n\nOnce the user receives the signed and encrypted message, they can decrypt it with their own private key and verify the signature with the sender's Card:\n\n```javascript\nimport { initCrypto, VirgilCrypto, VirgilPrivateKeyExporter } from 'virgil-crypto';\nimport { PrivateKeyStorage } from 'virgil-sdk';\n\n(async function() {\n\tawait initCrypto();\n\n\tconst virgilCrypto = new VirgilCrypto();\n\tconst privateKeyStorage = new PrivateKeyStorage(\n\t\tnew VirgilPrivateKeyExporter(virgilCrypto)\n\t);\n\n\t// Load the private key\n\tconst bobPrivateKey = await privateKeyStorage.load('bob_private_key');\n\tif (bobPrivateKey === null) {\n\t\tconsole.log('Private key named \"bob_private_key\" does not exist');\n\t\treturn;\n\t}\n\n\tconst cards = await cardManager.searchCards('alice@example.com');\n\tif (cards.length === 0) {\n\t\tconsole.log('Virgil Card with identity \"alice@example.com\" does not exist');\n\t\treturn;\n\t}\n\n\tconst alicePublicKeys = cards.map(card => card.publicKey);\n\tconst decryptedMessage = virgilCrypto.decryptThenVerify(encryptedMessage, bobPrivateKey, alicePublicKeys);\n\tconsole.log(decryptedMessage.toString());\n})();\n```\n\n### Get Card by its ID\n\nUse the following lines of code to get a user's card from Virgil Cloud by its ID:\n\n```javascript\ncardManager.getCard('f4bf9f7fcbedaba0392f108c59d8f4a38b3838efb64877380171b54475c2ade8')\n.then(card => {\n    console.log('Got: ', card);\n});\n```\n\n### Get Card by user's identity\n\nFor a single user, use the following lines of code to get a user's Card by a user's `identity`:\n\n```javascript\ncardManager.searchCards('alice@example.com')\n.then(cards => {\n    cards.map(card => console.log(card.id));\n});\n```\n\n## Docs\n\n* [Developer Documentation](https://developer.virgilsecurity.com/)\n* [API Reference](https://virgilsecurity.github.io/virgil-sdk-javascript/)\n\n## License\n\nThis library is released under the [3-clause BSD License](LICENSE).\n\n## Support\n\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n","readmeFilename":"README.md"}