Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
chore: update clean npm script and update @secman/crypto package
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 30, 2022
1 parent d65ccfc commit 12588b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
35 changes: 15 additions & 20 deletions crypto/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
export declare const isBase64: (value: any) => boolean;
export declare class CryptoTools {
static transmissionKey: any;
static encryptKey: any;
static sha1(msg: any): string;
static hmac(msg: any, transmissionKey?: any): string;
static encrypt(message: any, password?: any): string;
static decrypt(transitMessage: any, password?: any): string;
static pbkdf2Encrypt(masterPassword: any, secret: any): string;
static sha256Encrypt(value: any): string;
static aesEncrypt(value: any, key?: any): string;
static aesDecrypt(value: any, key?: any): string;
static encryptFields(data: any, encryptKey?: any): void;
static decryptFields(data: any, keyList: any, encryptKey?: any): void;
static encryptPayload(
data: any,
keyList: any,
encryptKey?: any,
transmissionKey?: any
): {
data: string;
};
static transmissionKey: any;
static encryptKey: any;
static sha1(msg: any): string;
static hmac(msg: any, transmissionKey?: any): string;
static encrypt(message: any, password?: any): string;
static decrypt(transitMessage: any, password?: any): string;
static pbkdf2Encrypt(masterPassword: any, secret: any): string;
static sha256Encrypt(value: any): string;
static aesEncrypt(value: any, key?: any): string;
static aesDecrypt(value: any, key?: any): string;
static encryptFields(data: any, encryptKey?: any): void;
static decryptFields(data: any, keyList: any, encryptKey?: any): void;
static encryptPayload(data: any, keyList: any, encryptKey?: any, transmissionKey?: any): {
data: string;
};
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dev": "yarn export:node:options && turbo run dev --parallel",
"build": "yarn export:node:options && turbo run build",
"export:node:options": "export NODE_OPTIONS=--openssl-legacy-provider",
"clean": "rimraf node_modules && cd core && rimraf node_modules && cd ../desktop && rimraf node_modules && cd ../crypt && rimraf node_modules"
"clean": "rimraf node_modules && cd core && rimraf node_modules && cd ../desktop && rimraf node_modules && cd ../crypto && rimraf node_modules && cd ../tools/spinner && rimraf node_modules && cd ../.."
},
"author": {
"name": "Secman, Inc.",
Expand Down

0 comments on commit 12588b0

Please # to comment.