Socket
Socket
Sign inDemoInstall

@0xpass/passport

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xpass/passport - npm Package Compare versions

Comparing version 2.0.1 to 2.0.3

6

CHANGELOG.md
# @0xpass/passport
## 2.0.3
### Patch Changes
- c571116: patch encryption for scope-cli
## 2.0.1

@@ -4,0 +10,0 @@

8

dist/crypto.d.ts

@@ -7,6 +7,6 @@ export declare const LOCAL_RSA_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsl8sLC46QMKa400EnVfz+bEU2JJHXsXcwIGMItRJ3ZM3XZSzAmELJPh3lAlXyhktq2Cl0w0PuaH//fCQm5/3Rm48ytcdBmvwh3zpCnUylS3eJKF15L2xMb8eQf6nnNMnucnrhvDfdCL5ZZlkn2FDB4/UJpgPfrHivK69gaeT725g89gWvKmEG7+RGoXLPEXU4UyHxYyMMCDwxH2fE+jN53FG8JlwuLu1cbTYxgYIxf4Um+CvYp7irlGfvxP+Ws9lkBJ+MtCishod/7ytJD9jpbYf6BUAHSAeWeNBbkgSdmPSia4Mi2wPXeqmzmovjfJfWSiaCW+wFuMyCGVx/g/znQIDAQAB";

}>;
export declare const generateAesKey: () => Promise<ArrayBuffer>;
export declare const importKey: (keyFormat: any, encryptionKey: any, algo: any, keyUsages: any, extractable?: boolean) => Promise<CryptoKey>;
export declare const encrypt: (algo: any, key: any, data: any) => Promise<ArrayBuffer>;
export declare const decrypt: (algo: any, key: any, data: any) => Promise<ArrayBuffer>;
export declare const generateAesKey: () => Promise<any>;
export declare const importKey: (keyFormat: any, encryptionKey: any, algo: any, keyUsages: any, extractable?: boolean) => Promise<any>;
export declare const encrypt: (algo: any, key: any, data: any) => Promise<any>;
export declare const decrypt: (algo: any, key: any, data: any) => Promise<any>;
export declare const aesEncrypt: (plainText: string, encryptionKey: BufferSource, keyFormat?: "raw", keyLength?: number) => Promise<string>;

@@ -13,0 +13,0 @@ export declare const aesDecrypt: (cipherText: string, encryptionKey: BufferSource, keyFormat?: "raw", keyLength?: number) => Promise<string>;

@@ -14,3 +14,12 @@ import axios from 'axios';

const cryptoObj = typeof window !== "undefined" ? window.crypto : crypto;
let cryptoObj;
if (typeof window !== "undefined") {
cryptoObj = window.crypto;
}
else {
(async () => {
const cryptoModule = await import('crypto');
cryptoObj = cryptoModule.webcrypto;
})();
}
const LOCAL_RSA_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsl8sLC46QMKa400EnVfz+bEU2JJHXsXcwIGMItRJ3ZM3XZSzAmELJPh3lAlXyhktq2Cl0w0PuaH//fCQm5/3Rm48ytcdBmvwh3zpCnUylS3eJKF15L2xMb8eQf6nnNMnucnrhvDfdCL5ZZlkn2FDB4/UJpgPfrHivK69gaeT725g89gWvKmEG7+RGoXLPEXU4UyHxYyMMCDwxH2fE+jN53FG8JlwuLu1cbTYxgYIxf4Um+CvYp7irlGfvxP+Ws9lkBJ+MtCishod/7ytJD9jpbYf6BUAHSAeWeNBbkgSdmPSia4Mi2wPXeqmzmovjfJfWSiaCW+wFuMyCGVx/g/znQIDAQAB";

@@ -17,0 +26,0 @@ const TESTNET_RSA_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvQOa1gkatuN6KjaS4KEWsVZAN9i4Cf0j9jlmBW5RwCJ3Bxo32McP7axt4Ev6sMWM24lpCgXgu68S9KBYRcrcEB6dRcaupFGd+ER7M518fiJ0VtCZ+XRnmwn9fqEvotp9DPZOysJkUQ60kugCRKwNvfZzAFcDiubwiqsUY2sCm943a/u9Hym51SEetG+ZFPJZFOBqwRSGkOgGZ+9Ac7ITE+bWLCZk9DlzRu+BIoDOFzXZIn+/0a0X8BnLtRY4g50aew4J+4OllQagBbhYnPMvYExYIEUx6bdjQicw0Js6s2pHr+SFAX23kQtbVOVxb5+KEGp1d+6Q4Gx7FBoyWI5qPQIDAQAB";

{
"name": "@0xpass/passport",
"version": "2.0.1",
"version": "2.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -0,3 +1,11 @@

let cryptoObj;
const cryptoObj = typeof window !== "undefined" ? window.crypto : crypto;
if (typeof window !== "undefined") {
cryptoObj = window.crypto;
} else {
(async () => {
const cryptoModule = await import("crypto");
cryptoObj = cryptoModule.webcrypto;
})();
}

@@ -4,0 +12,0 @@ export const LOCAL_RSA_PUBLIC_KEY =

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc