Remove client-side isLoggedIn value
[ProtonMail-WebClient.git] / packages / srp / lib / constants.ts
blobbd5709aa7a408c9d4554f1b0687b6636f0775d72
1 export const VERIFICATION_STATUS = {
2     NOT_SIGNED: 0,
3     SIGNED_AND_VALID: 1,
4     SIGNED_AND_INVALID: 2,
5 };
7 export const SRP_LEN = 2048 / 8; // in bytes
9 export const AUTH_FALLBACK_VERSION = 2;
10 export const AUTH_VERSION = 4;
12 export const MAX_VALUE_ITERATIONS = 1000;
14 export const SRP_MODULUS_KEY = `-----BEGIN PGP PUBLIC KEY BLOCK-----
16 xjMEXAHLgxYJKwYBBAHaRw8BAQdAFurWXXwjTemqjD7CXjXVyKf0of7n9Ctm
17 L8v9enkzggHNEnByb3RvbkBzcnAubW9kdWx1c8J3BBAWCgApBQJcAcuDBgsJ
18 BwgDAgkQNQWFxOlRjyYEFQgKAgMWAgECGQECGwMCHgEAAPGRAP9sauJsW12U
19 MnTQUZpsbJb53d0Wv55mZIIiJL2XulpWPQD/V6NglBd96lZKBmInSXX/kXat
20 Sv+y0io+LR8i2+jV+AbOOARcAcuDEgorBgEEAZdVAQUBAQdAeJHUz1c9+KfE
21 kSIgcBRE3WuXC4oj5a2/U3oASExGDW4DAQgHwmEEGBYIABMFAlwBy4MJEDUF
22 hcTpUY8mAhsMAAD/XQD8DxNI6E78meodQI+wLsrKLeHn32iLvUqJbVDhfWSU
23 WO4BAMcm1u02t4VKw++ttECPt+HUgPUq5pqQWe5Q2cW4TMsE
24 =Y4Mw
25 -----END PGP PUBLIC KEY BLOCK-----`;
27 // Version 2 of bcrypt with 2**10 rounds.
28 // https://en.wikipedia.org/wiki/Bcrypt#Description
29 export const BCRYPT_PREFIX = '$2y$10$';