Checkpoint argon2id test to generate blind index

This commit is contained in:
Tuan Dang
2023-04-15 15:21:44 +03:00
parent 3eb810b979
commit fcb677d990
8 changed files with 104 additions and 14 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import { Schema, model, Types } from 'mongoose';
import { Schema, model, Types, Document } from 'mongoose';
import {
SECRET_SHARED,
SECRET_PERSONAL,
@@ -11,6 +11,7 @@ export interface ISecret {
type: string;
user: Types.ObjectId;
environment: string;
secretBlindIndex?: string;
secretKeyCiphertext: string;
secretKeyIV: string;
secretKeyTag: string;
@@ -57,6 +58,9 @@ const secretSchema = new Schema<ISecret>(
type: String,
required: true
},
secretBlindIndex: {
type: String
},
secretKeyCiphertext: {
type: String,
required: true