2021-04-02 04:03:00 +00:00
|
|
|
export interface KeyAttributes {
|
2020-09-12 21:53:41 +00:00
|
|
|
kekSalt: string;
|
|
|
|
encryptedKey: string;
|
2020-10-01 01:29:24 +00:00
|
|
|
keyDecryptionNonce: string;
|
2021-03-18 09:56:40 +00:00
|
|
|
opsLimit: number;
|
|
|
|
memLimit: number;
|
2021-04-01 13:15:00 +00:00
|
|
|
publicKey: string;
|
|
|
|
encryptedSecretKey: string;
|
|
|
|
secretKeyDecryptionNonce: string;
|
2021-04-05 08:01:39 +00:00
|
|
|
masterKeyEncryptedWithRecoveryKey: string;
|
|
|
|
masterKeyDecryptionNonce: string;
|
|
|
|
recoveryKeyEncryptedWithMasterKey: string;
|
|
|
|
recoveryKeyDecryptionNonce: string;
|
2021-02-09 09:33:54 +00:00
|
|
|
}
|
2021-03-21 14:18:38 +00:00
|
|
|
|
|
|
|
export const ENCRYPTION_CHUNK_SIZE = 4 * 1024 * 1024;
|
2021-06-13 14:50:22 +00:00
|
|
|
export const GAP_BTW_TILES = 4;
|
2021-06-13 16:39:39 +00:00
|
|
|
export const DATE_CONTAINER_HEIGHT = 48;
|
|
|
|
export const IMAGE_CONTAINER_MAX_HEIGHT = 200;
|
2021-08-13 02:38:38 +00:00
|
|
|
export const IMAGE_CONTAINER_MAX_WIDTH =
|
|
|
|
IMAGE_CONTAINER_MAX_HEIGHT - GAP_BTW_TILES;
|
2021-06-13 16:39:39 +00:00
|
|
|
export const MIN_COLUMNS = 4;
|
|
|
|
export const SPACE_BTW_DATES = 44;
|
2021-08-31 04:58:58 +00:00
|
|
|
|
|
|
|
export enum PAGES {
|
|
|
|
CHANGE_EMAIL = '/change-email',
|
|
|
|
CHANGE_PASSWORD = '/change-password',
|
|
|
|
CREDENTIALS = '/credentials',
|
|
|
|
GALLERY = '/gallery',
|
|
|
|
GENERATE = '/generate',
|
|
|
|
LOGIN = '/login',
|
|
|
|
RECOVER = '/recover',
|
|
|
|
SIGNUP = '/signup',
|
|
|
|
TWO_FACTOR_SETUP = '/two-factor/setup',
|
|
|
|
TWO_FACTOR_VERIFY = '/two-factor/verify',
|
|
|
|
TWO_FACTOR_RECOVER = '/two-factor/recover',
|
|
|
|
VERIFY = '/verify',
|
|
|
|
ROOT = '/',
|
2021-11-04 09:48:30 +00:00
|
|
|
ML_DEBUG = '/ml-debug',
|
2021-08-31 04:58:58 +00:00
|
|
|
}
|