@zohocorporation/vault-cli 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +16 -0
  2. package/out/commands/add/add.const.js +6 -0
  3. package/out/commands/add/add.types.js +2 -0
  4. package/out/commands/add/add.util.js +35 -0
  5. package/out/commands/download/download.const.js +6 -0
  6. package/out/commands/download/download.types.js +2 -0
  7. package/out/commands/download/download.utils.js +35 -0
  8. package/out/commands/generate-password/generate-password.const.js +12 -0
  9. package/out/commands/generate-password/generate-password.types.js +2 -0
  10. package/out/commands/generate-password/generate-password.utils.js +58 -0
  11. package/out/commands/generate-template/generate-template.const.js +7 -0
  12. package/out/commands/generate-template/generate-template.types.js +2 -0
  13. package/out/commands/generate-template/generate-template.util.js +37 -0
  14. package/out/commands/get/get.const.js +8 -0
  15. package/out/commands/get/get.types.js +2 -0
  16. package/out/commands/get/get.utils.js +45 -0
  17. package/out/commands/get-default/get-default.const.js +5 -0
  18. package/out/commands/get-default/get-default.types.js +2 -0
  19. package/out/commands/get-default/get-default.utils.js +33 -0
  20. package/out/commands/list/list.const.js +7 -0
  21. package/out/commands/list/list.types.js +2 -0
  22. package/out/commands/list/list.utils.js +43 -0
  23. package/out/commands/lock/lock.action.js +13 -0
  24. package/out/commands/lock/lock.js +10 -0
  25. package/out/commands/lock/lock.utils.js +52 -0
  26. package/out/commands/login/login.action.js +22 -0
  27. package/out/commands/login/login.const.js +10 -0
  28. package/out/commands/login/login.help.js +12 -0
  29. package/out/commands/login/login.js +17 -0
  30. package/out/commands/login/login.types.js +5 -0
  31. package/out/commands/login/login.utils.js +307 -0
  32. package/out/commands/reset/reset.action.js +28 -0
  33. package/out/commands/reset/reset.help.js +8 -0
  34. package/out/commands/reset/reset.js +14 -0
  35. package/out/commands/reset/reset.utils.js +2 -0
  36. package/out/commands/search/search.action.js +30 -0
  37. package/out/commands/search/search.constants.js +14 -0
  38. package/out/commands/search/search.help.js +6 -0
  39. package/out/commands/search/search.js +26 -0
  40. package/out/commands/search/search.types.js +16 -0
  41. package/out/commands/search/search.utils.js +61 -0
  42. package/out/commands/set-default/set-default.const.js +6 -0
  43. package/out/commands/set-default/set-default.types.js +2 -0
  44. package/out/commands/set-default/set-default.utils.js +39 -0
  45. package/out/commands/unlock/unlock.action.js +23 -0
  46. package/out/commands/unlock/unlock.help.js +2 -0
  47. package/out/commands/unlock/unlock.js +12 -0
  48. package/out/commands/unlock/unlock.type.js +2 -0
  49. package/out/commands/unlock/unlock.utils.js +133 -0
  50. package/out/js/I18n/index.js +80 -0
  51. package/out/js/I18n/resources/CLI_I18N_en.js +173 -0
  52. package/out/js/I18n/resources/CLI_I18N_es.js +3 -0
  53. package/out/js/I18n/resources/CLI_I18N_fr.js +3 -0
  54. package/out/js/I18n/resources/CLI_I18N_nl.js +3 -0
  55. package/out/js/I18n/resources/CLI_I18N_pt.js +3 -0
  56. package/out/js/I18n/resources/CLI_I18N_zh.js +3 -0
  57. package/out/js/crypto/aes.js +225 -0
  58. package/out/js/crypto/index.js +139 -0
  59. package/out/js/crypto/rsa.js +1945 -0
  60. package/out/js/crypto/zohovault.js +671 -0
  61. package/out/js/logger/index.js +10 -0
  62. package/out/old/Add.js +590 -0
  63. package/out/old/Default.js +209 -0
  64. package/out/old/Download.js +69 -0
  65. package/out/old/Generate.js +171 -0
  66. package/out/old/Get.js +225 -0
  67. package/out/old/List.js +197 -0
  68. package/out/old/Login.js +287 -0
  69. package/out/old/Logout.js +21 -0
  70. package/out/old/PasswordGenerator.js +718 -0
  71. package/out/old/PasswordPolicies.js +21 -0
  72. package/out/old/PasswordTypes.js +33 -0
  73. package/out/old/Update.js +682 -0
  74. package/out/old/cmd/addcmd.js +59 -0
  75. package/out/old/cmd/downloadcmd.js +76 -0
  76. package/out/old/cmd/generate-passwordcmd.js +127 -0
  77. package/out/old/cmd/generate-templatecmd.js +59 -0
  78. package/out/old/cmd/get-defaultcmd.js +48 -0
  79. package/out/old/cmd/getcmd.js +57 -0
  80. package/out/old/cmd/listcmd.js +54 -0
  81. package/out/old/cmd/logoutcmd.js +31 -0
  82. package/out/old/cmd/set-default.js +75 -0
  83. package/out/old/cmd/updatecmd.js +44 -0
  84. package/out/old/index.js +580 -0
  85. package/out/util/configuration.util.js +103 -0
  86. package/out/util/consts.util.js +97 -0
  87. package/out/util/dbutils/db.types.js +2 -0
  88. package/out/util/dbutils/db.utils.js +164 -0
  89. package/out/util/dbutils/dbtable.utils.js +19 -0
  90. package/out/util/dev.utils.js +14 -0
  91. package/out/util/encryptionutil/encryption.uitl.js +108 -0
  92. package/out/util/index.util.js +341 -0
  93. package/out/util/keyringutil/keyring.util.js +57 -0
  94. package/out/util/loader/loader.interface.js +2 -0
  95. package/out/util/loader/transfer.loader.js +28 -0
  96. package/out/util/login.util.js +352 -0
  97. package/out/util/passwordtypes.util.js +91 -0
  98. package/out/util/print.util.js +4 -0
  99. package/out/util/search.util.js +359 -0
  100. package/out/util/types.util.js +7 -0
  101. package/out/zv.js +41 -0
  102. package/package.json +96 -0
@@ -0,0 +1,133 @@
1
+ import { isMasterKeyExist } from "../../util/index.util.js";
2
+ import { generateWorkspaceHash, setHeaders } from "../login/login.utils.js";
3
+ import { getCredentials } from "../../util/dbutils/db.utils.js";
4
+ import { password } from "@inquirer/prompts";
5
+ export const checkConfigExist = () => {
6
+ return new Promise(async (resolve, reject) => {
7
+ try {
8
+ const data = getCredentials(generateWorkspaceHash());
9
+ if (!data) {
10
+ console.log("You are not logged in to your Zoho account yet. Please log in to your Zoho account using zv login, then access your account using zv unlock");
11
+ process.exit(0);
12
+ }
13
+ resolve("");
14
+ }
15
+ catch (err) {
16
+ reject(new Error("Error getting the config file"));
17
+ }
18
+ });
19
+ };
20
+ export const checkUserLoggedIn = () => {
21
+ return new Promise(async (resolve, reject) => {
22
+ try {
23
+ const masterKeyExist = await isMasterKeyExist();
24
+ if (masterKeyExist) {
25
+ console.log('You have already unlocked your Zoho Vault account');
26
+ process.exit(0);
27
+ }
28
+ resolve("");
29
+ }
30
+ catch (error) {
31
+ reject(new Error("Error when checking user already logged in"));
32
+ }
33
+ });
34
+ };
35
+ export const licenseResolverWithFeature = (featureSet) => {
36
+ return new Promise((resolve, _) => {
37
+ featureSet.forEach((feature) => {
38
+ if (feature.includes('CliAccess')) {
39
+ resolve(true);
40
+ return;
41
+ }
42
+ });
43
+ resolve(false);
44
+ });
45
+ };
46
+ export const isValidLicense = (configObj) => {
47
+ return new Promise(async (resolve, reject) => {
48
+ try {
49
+ let accessToken = await configObj.getAccessTokenforunlock();
50
+ setHeaders("Authorization", `Zoho-oauthtoken ${accessToken}`); //NoI18N
51
+ let licenseDetails = await configObj.hasValidLicense();
52
+ const { data: { operation: { result: { status, error_code } } } } = licenseDetails;
53
+ if (status === 'Success') {
54
+ const { data: { operation } } = licenseDetails;
55
+ const { Details } = operation;
56
+ const { FEATURES: featureList } = Details[0];
57
+ resolve(await licenseResolverWithFeature(featureList));
58
+ return;
59
+ }
60
+ if (error_code === 'INVALID_OAUTHTOKEN') {
61
+ console.log("Access token expired, Try logging in again");
62
+ process.exit(0);
63
+ }
64
+ resolve(false);
65
+ }
66
+ catch (err) {
67
+ reject(new Error("error while checking for license validity"));
68
+ }
69
+ });
70
+ };
71
+ export const promptUserToEnterMasterPassword = () => {
72
+ const passPhraseMsg = "Please enter your master password: "; //No I18N
73
+ return new Promise(async (resolve, reject) => {
74
+ try {
75
+ let passPhraseInp = await password({
76
+ mask: "*",
77
+ message: passPhraseMsg
78
+ });
79
+ resolve(passPhraseInp);
80
+ }
81
+ catch (err) {
82
+ reject(new Error("Error while user entering master password"));
83
+ }
84
+ });
85
+ };
86
+ export const getPassPhrase = (passPhrase) => {
87
+ return new Promise(async (resolve, reject) => {
88
+ try {
89
+ if (!!passPhrase) {
90
+ resolve(passPhrase);
91
+ return;
92
+ }
93
+ resolve(await promptUserToEnterMasterPassword());
94
+ }
95
+ catch (err) {
96
+ reject(new Error());
97
+ }
98
+ });
99
+ };
100
+ export const unlockUser = (passPhrase, configObj, isTrusted) => {
101
+ return new Promise(async (resolve, reject) => {
102
+ try {
103
+ const reslovedPassPhrase = await getPassPhrase(passPhrase);
104
+ const masterKey = await configObj.getMasterKey(reslovedPassPhrase);
105
+ const zuid = await configObj.getZUID();
106
+ if (!masterKey) {
107
+ console.log("Invalid master password. Please try again."); //No I18N
108
+ return;
109
+ }
110
+ await configObj.insertMasterKeyToDB(reslovedPassPhrase, masterKey, isTrusted, zuid);
111
+ if (isTrusted) {
112
+ console.log("Zoho vault unlocked successfully");
113
+ }
114
+ resolve(undefined);
115
+ }
116
+ catch (err) {
117
+ reject(err);
118
+ }
119
+ });
120
+ };
121
+ export const checkConfiguration = () => {
122
+ return new Promise(async (resolve, reject) => {
123
+ try {
124
+ await checkConfigExist();
125
+ await checkUserLoggedIn();
126
+ resolve(undefined);
127
+ }
128
+ catch (error) {
129
+ reject(error);
130
+ }
131
+ });
132
+ };
133
+ //# sourceMappingURL=unlock.utils.js.map
@@ -0,0 +1,80 @@
1
+ import fs from "fs";
2
+ import { _pull, Utilities
3
+ // resourceFolder,
4
+ // en_resource,
5
+ // zh_resource,
6
+ // es_resource,
7
+ // nl_resource,
8
+ // fr_resource,
9
+ // pt_resource,
10
+ } from "../../util/index.util.js"; //No I18N
11
+ import EN from "./resources/CLI_I18N_en.js";
12
+ import ES from "./resources/CLI_I18N_es.js";
13
+ import FR from "./resources/CLI_I18N_fr.js";
14
+ import NL from "./resources/CLI_I18N_nl.js";
15
+ import PT from "./resources/CLI_I18N_pt.js";
16
+ import ZH from "./resources/CLI_I18N_zh.js";
17
+ import { getDecryptedCredentials } from "../../util/dbutils/db.utils.js";
18
+ import { generateWorkspaceHash } from "../../commands/login/login.utils.js";
19
+ export class I18N {
20
+ constructor() {
21
+ if (Utilities.isConfigured()) {
22
+ if (!I18N.__instance) {
23
+ // this.language = this.getUserLanguageFromFile()
24
+ switch (this.language) {
25
+ case "fr":
26
+ // this.resourcePath = resourceFolder + fr_resource
27
+ this.parsedText = FR;
28
+ break;
29
+ case "zh":
30
+ // this.resourcePath = resourceFolder + zh_resource
31
+ this.parsedText = ZH;
32
+ break;
33
+ case "es":
34
+ // this.resourcePath = resourceFolder + es_resource
35
+ this.parsedText = ES;
36
+ break;
37
+ case "nl":
38
+ // this.resourcePath = resourceFolder + nl_resource
39
+ this.parsedText = NL;
40
+ break;
41
+ case "pt":
42
+ // this.resourcePath = resourceFolder + pt_resource
43
+ this.parsedText = PT;
44
+ break;
45
+ default:
46
+ // this.resourcePath = resourceFolder + en_resource
47
+ this.parsedText = EN;
48
+ break;
49
+ }
50
+ I18N.__instance = this;
51
+ }
52
+ }
53
+ else {
54
+ // this.resourcePath = resourceFolder + en_resource
55
+ this.language = "en";
56
+ this.parsedText = EN;
57
+ }
58
+ return I18N.__instance;
59
+ }
60
+ async getUserLanguageFromFile() {
61
+ const data = await getDecryptedCredentials(generateWorkspaceHash());
62
+ if (!data) {
63
+ return "en"; //NO I18N
64
+ }
65
+ const { language } = data;
66
+ return language;
67
+ }
68
+ getLanguage() {
69
+ return this.language;
70
+ }
71
+ getI18nMsg(text) {
72
+ if (this.parsedText.hasOwnProperty(text)) {
73
+ return this.parsedText[text];
74
+ }
75
+ else {
76
+ return text;
77
+ }
78
+ }
79
+ }
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,173 @@
1
+ const EN = {
2
+ "vault.search.desc": "Search for passwords in your vault",
3
+ "vault.search.option_key": "Your search term",
4
+ "vault.search.option_strict": "Find exact term",
5
+ "vault.search.option_tags": "Include tags in search",
6
+ "vault.search.option_includeDesc": "Include description in search",
7
+ "vault.search.option_includeName": "Include password name in search",
8
+ "vault.search.option_verbose": "Include all fields",
9
+ "vault.search.option_notSafe": "Display passwords in plain text",
10
+ "vault.search.option_outFile": "Path to store output details",
11
+ "vault.search.option_output": "Output format to be obtained eg: json|yaml|table|xml",
12
+ "vault.search.example_note": "Note:\n - Strict flag will only return results that exactly matches with your search term.",
13
+ "vault.search.outputFile_invalid": "Invalid output file provided. For more information, please run the command zv search -h",
14
+ "vault.search.secrets_errorSearching": "Unable to find your search term. Please try again later.",
15
+ "vault.get.desc": "Find complete details about your password",
16
+ "vault.get.option_secretId": "Find details using your password ID. To find your password ID, please run the command zv search -k passwordname",
17
+ "vault.get.option_notSafe": "Display passwords in plain text",
18
+ "vault.get.option_outFile": "Path to store output details",
19
+ "vault.get.option_output": "Output format to be obtained eg: json|yaml|table|xml",
20
+ "vault.get.outputFile_invalid": "Invalid output file provided. For more information, please run the command zv get -h",
21
+ "vault.get.secrets_errorFetching": "Unable to find the details. Please try again later.",
22
+ "vault.add.desc": "Add passwords to Zoho Vault",
23
+ "vault.add.option_passType": "Add a password using category ID. To find your category ID, please run the command zv list category",
24
+ "vault.add.option_templateFile": "Import passwords using CLI template. To generate a new template, please run the command zv generate template",
25
+ "vault.add.example_note": "Note:\n - When add command is called without any parameter an interactive prompt will be shown to the user.",
26
+ "vault.add.templateFile_invalid": "Invalid path for the template provided. For more information, please run the command zv add -h",
27
+ "vault.add.secrets_errorAdding": "Unable to add passwords. Please try again later.",
28
+ "vault.generate.desc": "Generate passwords and templates",
29
+ "vault.generate.option_type": "Type can only take two values (password|template)",
30
+ "vault.generate.option_policyId": "Generete password based on the policy ID. To find your policy ID, please run the command zv generate password",
31
+ "vault.generate.option_templateId": "Generete template based on the categoryId",
32
+ "vault.generate.option_outFile": "Path to store the output details",
33
+ "vault.generate.option_output": "Output format to be obtained eg: json|yaml|xml",
34
+ "vault.generate.example_note": "Note:\n - If policyId is not provided, a list of policies will be shown.\n - If templateId is not provided, a list of categories will be shown.",
35
+ "vault.generate.outputFile_invalid": "Invalid output file provided. For more information, please run the command zv generate -h",
36
+ "vault.generate.secrets_errorGenerating": "Unable to generate passwords. Please try again later.",
37
+ "vault.generate.templates_errorGenerating": "Unable to generate template Please try again later.",
38
+ "vault.update.desc": "Edit password details",
39
+ "vault.update.option_passwordId": "Password ID",
40
+ "vault.update.option_inputJson": "Json file with input details",
41
+ "vault.update.example_note": "Note:\n - Password ID can be found using the get command.",
42
+ "vault.update.jsonParsing_invalid": "Invalid file (%s) provided. Please check your file input and try again.",
43
+ "vault.update.file_doesntExit": "File does not exist. Please check the file location and try again.",
44
+ "vault.update.secrets_errorUpdating": "Unable to update passwords. Please try again later.",
45
+ "vault.download.desc": "Download file attachments from vault",
46
+ "vault.download.option_passId": "Password ID of the file to be downloaded",
47
+ "vault.download.option_dir": "Path where downloaded files must be saved",
48
+ "vault.download.dir_expectedDirectory": "Directory is expected for option --dir",
49
+ "vault.download.dir_notWritable": "%s is not writable. Please check your file permissions and try again.",
50
+ "vault.download.errorDownloading": "Unable to download files from Vault. Please try again later.",
51
+ "vault.list.option_type": "Category ID",
52
+ "vault.list.option_showPassword": "Display password in plain text",
53
+ "vault.list.option_verbose": "List complete information",
54
+ "vault.list.desc": "List passwords and password categories",
55
+ "vault.list.category": "Category can list password/category",
56
+ "vault.list.secrets_errorListing": "Unable to list passwords. Please try again later or open error.log file for more details.",
57
+ "vault.logout.desc": "Log out from the Zoho Vault CLI",
58
+ "vault.logout.success": "You're logged out of your Zoho account",
59
+ "vault.logout.error": "Problem occured while logging out of Vault",
60
+ "vault.command.missing_suggestion": "Did you mean zv %s?",
61
+ "vault.error.showerror": "Error: %s",
62
+ "vault.XSSValidatorWithMand.emptyField": "Mandatory fields cannot be empty",
63
+ "vault.XSSValidatorWithMand.invalidChar": "Invalid characters entered ",
64
+ "vault.XSSValidator.invalidChar": "Invalid characters entered ",
65
+ "vault.URLValidator.URL_invalid": "Invalid URL. Please try again.",
66
+ "vault.FileValidator.filePath_invalid": "Path provided is invalid or not readable",
67
+ "vault.mandFileValidator.filePath_invalid": "Path provided is invalid or not readable",
68
+ "vault.mandFileValidator.emptyField": "Mandatory fields cannot be empty",
69
+ "vault.mandValidator.emptyField": "Mandatory fields cannot be empty",
70
+ "vault.passwordMandValidator.emptyField": "Mandatory fields cannot be empty",
71
+ "vault.selectionPrompt.policyNumber": "Enter the S.No of the Policy to be selected:", //NO I18N
72
+ "vault.selectionPrompt.Category": "Enter the S.No of the Category to be selected:", //NO I18N
73
+ "vault.selectionPrompt.end_invalid": "Accepted values are between 1 and ",
74
+ "vault.add.getJSONFromTemplate_problem": "Invalid template. Please check your template and try again.",
75
+ "vault.add.processTemplate_secretType_invalid": "Invalid category provided in the template. Please try again.",
76
+ "vault.add.processTemplate_secretType_notPresent": "Category field is not found in the template",
77
+ "vault.add.processTemplate_allowedClassification": "Please enter either P or E for classification",
78
+ "vault.add.processTemplate_secretName": "Password Name",
79
+ "vault.add.processTemplate_Description": "Description",
80
+ "vault.add.processTemplate_URL": "URL",
81
+ "vault.add.processTemplate_tags": "Tags",
82
+ "vault.add.processTemplate_customCol_invalid": "File %s is either invalid or not readable",
83
+ "vault.add.processTemplate_secret_incomplete": "Input fields are incomplete. Please check your file input and try again.",
84
+ "vault.add.processTemplate_secretCol_invalid": "Invalid value for %s",
85
+ "vault.add.interactiveAdd_passwordType": "Category: ",
86
+ "vault.add.interactiveAdd_desc": "Description: ",
87
+ "vault.add.interactiveAdd_URL": "URL: ",
88
+ "vault.add.interactiveAdd_tags": "Tags (comma separated): ",
89
+ "vault.add.interactiveAdd_secureNotes": "Secure Notes: ",
90
+ "vault.add.interactiveAdd_addCustomCol": "Do you want to add custom columns?",
91
+ "vault.add.interactiveAdd_colType": "Specify column type:",
92
+ "vault.add.interactiveAdd_customCol_name": "Column Name",
93
+ "vault.add.interactiveAdd_customCol_value": "Column Value",
94
+ "vault.add.interactiveAdd_passwordName": "Password Name* : ",
95
+ "vault.add.interactiveAdd_classification": "Classification* : ",
96
+ "vault.add.interactiveAdd_option_colType_file": "file",
97
+ "vault.add.interactiveAdd_option_colType_text": "text",
98
+ "vault.add.interactiveAdd_option_colType_password": "password",
99
+ "vault.download.noFiles": "No files associated with this password. Please select a valid password and try again.",
100
+ "vault.download.errorDecrypting": "Error decrypting the file. Please try again.",
101
+ "vault.download.success": "Files Downloaded successfully",
102
+ "vault.generate.templateId_invalid": "Invalid template ID provided",
103
+ "vault.get.formatDataForTable_head_label": "Label",
104
+ "vault.get.formatDataForTable_head_value": "Value",
105
+ "vault.get.formatDataForTable_body_passwordId_label": "Password ID",
106
+ "vault.get.formatDataForTable_body_passwordName_label": "Password Name",
107
+ "vault.get.formatDataForTable_body_description_label": "Description",
108
+ "vault.get.formatDataForTable_body_classification_label": "Classification",
109
+ "vault.get.formatDataforTable_body_URL_label": "Password URL",
110
+ "vault.get.formatDataForTable_body_username_label": "User Name",
111
+ "vault.get.formatDataForTable_body_password_label": "Password",
112
+ "vault.get.formatDataForTable_body_file_label": "File Attachment",
113
+ "vault.get.formatDataForTable_body_ownername_label": "Password Owner",
114
+ "vault.get.formatDataForTable_body_owneremail_label": "Owner's Email",
115
+ "vault.get.formatDataForTable_body_securenote_label": "Secure Notes",
116
+ "vault.get.formatDataForTable_body_agency_label": "Health Care Agency",
117
+ "vault.get.formatDataForTable_body_policyno_label": "Policy Number",
118
+ "vault.get.formatDataForTable_body_groupno_label": "Group Number",
119
+ "vault.get.formatDataTable_body_name_label": "Name",
120
+ "vault.get.formatDataTable_body_ssno_label": "Social Security Number",
121
+ "vault.get.formatDataTable_body_accno_label": "Account Number",
122
+ "vault.get.formatDataTable_body_bankid_label": "Online Banking Id",
123
+ "vault.get.getPassWithId_notSuccess": "Unable to fetch your password. Please try again later.",
124
+ "vault.list.errorListing": "Unable to list your password. Please try again later.",
125
+ "vault.list.noPasswordFound": "No passwords found in this category",
126
+ "vault.list.category_suggestion": "Did you mean zv list %s ?",
127
+ "vault.list.listsecrets_category": "Category - ",
128
+ "vault.search.formatDataForTable_head_passwordId": "Password ID",
129
+ "vault.search.formatDataForTable_head_passwordName": "Password Name",
130
+ "vault.search.formatDataForTable_head_Description": "Description",
131
+ "vault.search.formatDataForTable_head_type": "Category",
132
+ "vault.search.formatDataForTable_head_ownerName": "Password Owner",
133
+ "vault.search.formatDataForTable_head_owneremail": "Owner's Email",
134
+ "vault.search.formatDataForTable_head_username": "Username",
135
+ "vault.search.formatDataForTable_head_password": "Password",
136
+ "vault.search.formatDataForTable_head_file": "File Attachment",
137
+ "vault.search.formatDataForTable_head_agency": "Health Care Agency",
138
+ "vault.search.formatDataForTable_head_policyno": "Policy Number",
139
+ "vault.search.formatDataForTable_head_groupno": "Group Number",
140
+ "vault.search.formatDataForTable_head_name": "Name",
141
+ "vault.search.formatDataForTable_head_ssno": "Social Security Number",
142
+ "vault.search.formatDataForTable_head_accno": "Account Number",
143
+ "vault.search.formatDataForTable_head_bankid": "Online Banking ID",
144
+ "vault.search.formatDataForTable_category": "Category - ",
145
+ "vault.search.getSecrets_noPasswordFound": "No passwords containing your search term was found",
146
+ "vault.update.classification_allowedValues": "Classification E|P are the only values allowed",
147
+ "vault.update.mand_emptyFields": "Mandatory fields cannot be left empty",
148
+ "vault.update.customCol_emptyField": "Custom column fields cannot be left empty",
149
+ "vault.update.updateSuccess": "Password updated successfully",
150
+ "vault.update.fileUpdate_notSupported": "File Updation in Vault CLI is not supported yet",
151
+ "vault.update.file_limit": "Only 2 files could be added for password",
152
+ "vault.update.updateCol": "Columns to Update",
153
+ "vault.update.updatecustomCol": "Do you want to Update Custom Column?",
154
+ "vault.server.errorReaching": "Unable to process your request. Please try again later.",
155
+ "vault.error.checkConnectivity": "Unable to process your request. Please check your network and try again.",
156
+ "vault.default.command": "Command",
157
+ "vault.default.flag": "Option",
158
+ "vault.default.value": "Default Value",
159
+ "vault.default.notConfigured": "No default values configured.",
160
+ "vault.defaults.noCommands": "No such commands found",
161
+ "vault.defaults.commandsSuggestion": "Select one of the following commands: ",
162
+ "vault.defaults.invalidCommand": "Invalid Commands: ",
163
+ "vault.defaults.commandConsidered": "Commands Considered: ",
164
+ "vault.defaults.select_command": "Select commands to set default values - ",
165
+ "vault.defaults.select_option": "Select options for which defaults are to be set (use spacebar to select options and enter to set) ",
166
+ "vault.defaults.promptAnswer": "Set default value for option: ",
167
+ "vault.download.filesDownloaded": "Files Downloaded - ",
168
+ "vault.get.cantSaveTable": "Table cannot be saved as a file. Only the following files can be saved : JSON | XML | YAML.",
169
+ "vault.search.cantSaveTable": "Table cannot be saved as a file. Only the following files can be saved : JSON | XML | YAML.",
170
+ "vault.generator.excludeChar": "Cannot exclude every character. Please change your options and try again."
171
+ };
172
+ export default EN;
173
+ //# sourceMappingURL=CLI_I18N_en.js.map
@@ -0,0 +1,3 @@
1
+ const ES = {};
2
+ export default ES;
3
+ //# sourceMappingURL=CLI_I18N_es.js.map
@@ -0,0 +1,3 @@
1
+ const FR = {};
2
+ export default FR;
3
+ //# sourceMappingURL=CLI_I18N_fr.js.map
@@ -0,0 +1,3 @@
1
+ const NL = {};
2
+ export default NL;
3
+ //# sourceMappingURL=CLI_I18N_nl.js.map
@@ -0,0 +1,3 @@
1
+ const PT = {};
2
+ export default PT;
3
+ //# sourceMappingURL=CLI_I18N_pt.js.map
@@ -0,0 +1,3 @@
1
+ const ZH = {};
2
+ export default ZH;
3
+ //# sourceMappingURL=CLI_I18N_zh.js.map
@@ -0,0 +1,225 @@
1
+ /*
2
+ CryptoJS v3.1.2
3
+ code.google.com/p/crypto-js
4
+ (c) 2009-2013 by Jeff Mott. All rights reserved.
5
+ code.google.com/p/crypto-js/wiki/License
6
+ */
7
+ var CryptoJS = CryptoJS || function (u, p) {
8
+ var d = {}, l = d.lib = {}, s = function () { }, t = l.Base = { extend: function (a) { s.prototype = this; var c = new s; a && c.mixIn(a); c.hasOwnProperty("init") || (c.init = function () { c.$super.init.apply(this, arguments); }); c.init.prototype = c; c.$super = this; return c; }, create: function () { var a = this.extend(); a.init.apply(a, arguments); return a; }, init: function () { }, mixIn: function (a) { for (var c in a)
9
+ a.hasOwnProperty(c) && (this[c] = a[c]); a.hasOwnProperty("toString") && (this.toString = a.toString); }, clone: function () { return this.init.prototype.extend(this); } }, r = l.WordArray = t.extend({ init: function (a, c) { a = this.words = a || []; this.sigBytes = c != p ? c : 4 * a.length; }, toString: function (a) { return (a || v).stringify(this); }, concat: function (a) { var c = this.words, e = a.words, j = this.sigBytes; a = a.sigBytes; this.clamp(); if (j % 4)
10
+ for (var k = 0; k < a; k++)
11
+ c[j + k >>> 2] |= (e[k >>> 2] >>> 24 - 8 * (k % 4) & 255) << 24 - 8 * ((j + k) % 4);
12
+ else if (65535 < e.length)
13
+ for (k = 0; k < a; k += 4)
14
+ c[j + k >>> 2] = e[k >>> 2];
15
+ else
16
+ c.push.apply(c, e); this.sigBytes += a; return this; }, clamp: function () {
17
+ var a = this.words, c = this.sigBytes;
18
+ a[c >>> 2] &= 4294967295 <<
19
+ 32 - 8 * (c % 4);
20
+ a.length = u.ceil(c / 4);
21
+ }, clone: function () { var a = t.clone.call(this); a.words = this.words.slice(0); return a; }, random: function (a) { for (var c = [], e = 0; e < a; e += 4)
22
+ c.push(4294967296 * u.random() | 0); return new r.init(c, a); } }), w = d.enc = {}, v = w.Hex = { stringify: function (a) { var c = a.words; a = a.sigBytes; for (var e = [], j = 0; j < a; j++) {
23
+ var k = c[j >>> 2] >>> 24 - 8 * (j % 4) & 255;
24
+ e.push((k >>> 4).toString(16));
25
+ e.push((k & 15).toString(16));
26
+ } return e.join(""); }, parse: function (a) {
27
+ for (var c = a.length, e = [], j = 0; j < c; j += 2)
28
+ e[j >>> 3] |= parseInt(a.substr(j, 2), 16) << 24 - 4 * (j % 8);
29
+ return new r.init(e, c / 2);
30
+ } }, b = w.Latin1 = { stringify: function (a) { var c = a.words; a = a.sigBytes; for (var e = [], j = 0; j < a; j++)
31
+ e.push(String.fromCharCode(c[j >>> 2] >>> 24 - 8 * (j % 4) & 255)); return e.join(""); }, parse: function (a) { for (var c = a.length, e = [], j = 0; j < c; j++)
32
+ e[j >>> 2] |= (a.charCodeAt(j) & 255) << 24 - 8 * (j % 4); return new r.init(e, c); } }, x = w.Utf8 = { stringify: function (a) { try {
33
+ return decodeURIComponent(escape(b.stringify(a)));
34
+ }
35
+ catch (c) {
36
+ throw Error("Malformed UTF-8 data");
37
+ } }, parse: function (a) { return b.parse(unescape(encodeURIComponent(a))); } }, q = l.BufferedBlockAlgorithm = t.extend({ reset: function () { this._data = new r.init; this._nDataBytes = 0; }, _append: function (a) { "string" == typeof a && (a = x.parse(a)); this._data.concat(a); this._nDataBytes += a.sigBytes; }, _process: function (a) { var c = this._data, e = c.words, j = c.sigBytes, k = this.blockSize, b = j / (4 * k), b = a ? u.ceil(b) : u.max((b | 0) - this._minBufferSize, 0); a = b * k; j = u.min(4 * a, j); if (a) {
38
+ for (var q = 0; q < a; q += k)
39
+ this._doProcessBlock(e, q);
40
+ q = e.splice(0, a);
41
+ c.sigBytes -= j;
42
+ } return new r.init(q, j); }, clone: function () {
43
+ var a = t.clone.call(this);
44
+ a._data = this._data.clone();
45
+ return a;
46
+ }, _minBufferSize: 0 });
47
+ l.Hasher = q.extend({ cfg: t.extend(), init: function (a) { this.cfg = this.cfg.extend(a); this.reset(); }, reset: function () { q.reset.call(this); this._doReset(); }, update: function (a) { this._append(a); this._process(); return this; }, finalize: function (a) { a && this._append(a); return this._doFinalize(); }, blockSize: 16, _createHelper: function (a) { return function (b, e) { return (new a.init(e)).finalize(b); }; }, _createHmacHelper: function (a) {
48
+ return function (b, e) {
49
+ return (new n.HMAC.init(a, e)).finalize(b);
50
+ };
51
+ } });
52
+ var n = d.algo = {};
53
+ return d;
54
+ }(Math);
55
+ (function () {
56
+ var u = CryptoJS, p = u.lib.WordArray;
57
+ u.enc.Base64 = { stringify: function (d) { var l = d.words, p = d.sigBytes, t = this._map; d.clamp(); d = []; for (var r = 0; r < p; r += 3)
58
+ for (var w = (l[r >>> 2] >>> 24 - 8 * (r % 4) & 255) << 16 | (l[r + 1 >>> 2] >>> 24 - 8 * ((r + 1) % 4) & 255) << 8 | l[r + 2 >>> 2] >>> 24 - 8 * ((r + 2) % 4) & 255, v = 0; 4 > v && r + 0.75 * v < p; v++)
59
+ d.push(t.charAt(w >>> 6 * (3 - v) & 63)); if (l = t.charAt(64))
60
+ for (; d.length % 4;)
61
+ d.push(l); return d.join(""); }, parse: function (d) {
62
+ var l = d.length, s = this._map, t = s.charAt(64);
63
+ t && (t = d.indexOf(t), -1 != t && (l = t));
64
+ for (var t = [], r = 0, w = 0; w <
65
+ l; w++)
66
+ if (w % 4) {
67
+ var v = s.indexOf(d.charAt(w - 1)) << 2 * (w % 4), b = s.indexOf(d.charAt(w)) >>> 6 - 2 * (w % 4);
68
+ t[r >>> 2] |= (v | b) << 24 - 8 * (r % 4);
69
+ r++;
70
+ }
71
+ return p.create(t, r);
72
+ }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" };
73
+ })();
74
+ (function (u) {
75
+ function p(b, n, a, c, e, j, k) { b = b + (n & a | ~n & c) + e + k; return (b << j | b >>> 32 - j) + n; }
76
+ function d(b, n, a, c, e, j, k) { b = b + (n & c | a & ~c) + e + k; return (b << j | b >>> 32 - j) + n; }
77
+ function l(b, n, a, c, e, j, k) { b = b + (n ^ a ^ c) + e + k; return (b << j | b >>> 32 - j) + n; }
78
+ function s(b, n, a, c, e, j, k) { b = b + (a ^ (n | ~c)) + e + k; return (b << j | b >>> 32 - j) + n; }
79
+ for (var t = CryptoJS, r = t.lib, w = r.WordArray, v = r.Hasher, r = t.algo, b = [], x = 0; 64 > x; x++)
80
+ b[x] = 4294967296 * u.abs(u.sin(x + 1)) | 0;
81
+ r = r.MD5 = v.extend({ _doReset: function () { this._hash = new w.init([1732584193, 4023233417, 2562383102, 271733878]); },
82
+ _doProcessBlock: function (q, n) {
83
+ for (var a = 0; 16 > a; a++) {
84
+ var c = n + a, e = q[c];
85
+ q[c] = (e << 8 | e >>> 24) & 16711935 | (e << 24 | e >>> 8) & 4278255360;
86
+ }
87
+ var a = this._hash.words, c = q[n + 0], e = q[n + 1], j = q[n + 2], k = q[n + 3], z = q[n + 4], r = q[n + 5], t = q[n + 6], w = q[n + 7], v = q[n + 8], A = q[n + 9], B = q[n + 10], C = q[n + 11], u = q[n + 12], D = q[n + 13], E = q[n + 14], x = q[n + 15], f = a[0], m = a[1], g = a[2], h = a[3], f = p(f, m, g, h, c, 7, b[0]), h = p(h, f, m, g, e, 12, b[1]), g = p(g, h, f, m, j, 17, b[2]), m = p(m, g, h, f, k, 22, b[3]), f = p(f, m, g, h, z, 7, b[4]), h = p(h, f, m, g, r, 12, b[5]), g = p(g, h, f, m, t, 17, b[6]), m = p(m, g, h, f, w, 22, b[7]), f = p(f, m, g, h, v, 7, b[8]), h = p(h, f, m, g, A, 12, b[9]), g = p(g, h, f, m, B, 17, b[10]), m = p(m, g, h, f, C, 22, b[11]), f = p(f, m, g, h, u, 7, b[12]), h = p(h, f, m, g, D, 12, b[13]), g = p(g, h, f, m, E, 17, b[14]), m = p(m, g, h, f, x, 22, b[15]), f = d(f, m, g, h, e, 5, b[16]), h = d(h, f, m, g, t, 9, b[17]), g = d(g, h, f, m, C, 14, b[18]), m = d(m, g, h, f, c, 20, b[19]), f = d(f, m, g, h, r, 5, b[20]), h = d(h, f, m, g, B, 9, b[21]), g = d(g, h, f, m, x, 14, b[22]), m = d(m, g, h, f, z, 20, b[23]), f = d(f, m, g, h, A, 5, b[24]), h = d(h, f, m, g, E, 9, b[25]), g = d(g, h, f, m, k, 14, b[26]), m = d(m, g, h, f, v, 20, b[27]), f = d(f, m, g, h, D, 5, b[28]), h = d(h, f, m, g, j, 9, b[29]), g = d(g, h, f, m, w, 14, b[30]), m = d(m, g, h, f, u, 20, b[31]), f = l(f, m, g, h, r, 4, b[32]), h = l(h, f, m, g, v, 11, b[33]), g = l(g, h, f, m, C, 16, b[34]), m = l(m, g, h, f, E, 23, b[35]), f = l(f, m, g, h, e, 4, b[36]), h = l(h, f, m, g, z, 11, b[37]), g = l(g, h, f, m, w, 16, b[38]), m = l(m, g, h, f, B, 23, b[39]), f = l(f, m, g, h, D, 4, b[40]), h = l(h, f, m, g, c, 11, b[41]), g = l(g, h, f, m, k, 16, b[42]), m = l(m, g, h, f, t, 23, b[43]), f = l(f, m, g, h, A, 4, b[44]), h = l(h, f, m, g, u, 11, b[45]), g = l(g, h, f, m, x, 16, b[46]), m = l(m, g, h, f, j, 23, b[47]), f = s(f, m, g, h, c, 6, b[48]), h = s(h, f, m, g, w, 10, b[49]), g = s(g, h, f, m, E, 15, b[50]), m = s(m, g, h, f, r, 21, b[51]), f = s(f, m, g, h, u, 6, b[52]), h = s(h, f, m, g, k, 10, b[53]), g = s(g, h, f, m, B, 15, b[54]), m = s(m, g, h, f, e, 21, b[55]), f = s(f, m, g, h, v, 6, b[56]), h = s(h, f, m, g, x, 10, b[57]), g = s(g, h, f, m, t, 15, b[58]), m = s(m, g, h, f, D, 21, b[59]), f = s(f, m, g, h, z, 6, b[60]), h = s(h, f, m, g, C, 10, b[61]), g = s(g, h, f, m, j, 15, b[62]), m = s(m, g, h, f, A, 21, b[63]);
88
+ a[0] = a[0] + f | 0;
89
+ a[1] = a[1] + m | 0;
90
+ a[2] = a[2] + g | 0;
91
+ a[3] = a[3] + h | 0;
92
+ }, _doFinalize: function () {
93
+ var b = this._data, n = b.words, a = 8 * this._nDataBytes, c = 8 * b.sigBytes;
94
+ n[c >>> 5] |= 128 << 24 - c % 32;
95
+ var e = u.floor(a /
96
+ 4294967296);
97
+ n[(c + 64 >>> 9 << 4) + 15] = (e << 8 | e >>> 24) & 16711935 | (e << 24 | e >>> 8) & 4278255360;
98
+ n[(c + 64 >>> 9 << 4) + 14] = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360;
99
+ b.sigBytes = 4 * (n.length + 1);
100
+ this._process();
101
+ b = this._hash;
102
+ n = b.words;
103
+ for (a = 0; 4 > a; a++)
104
+ c = n[a], n[a] = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360;
105
+ return b;
106
+ }, clone: function () { var b = v.clone.call(this); b._hash = this._hash.clone(); return b; } });
107
+ t.MD5 = v._createHelper(r);
108
+ t.HmacMD5 = v._createHmacHelper(r);
109
+ })(Math);
110
+ (function () {
111
+ var u = CryptoJS, p = u.lib, d = p.Base, l = p.WordArray, p = u.algo, s = p.EvpKDF = d.extend({ cfg: d.extend({ keySize: 4, hasher: p.MD5, iterations: 1 }), init: function (d) { this.cfg = this.cfg.extend(d); }, compute: function (d, r) { for (var p = this.cfg, s = p.hasher.create(), b = l.create(), u = b.words, q = p.keySize, p = p.iterations; u.length < q;) {
112
+ n && s.update(n);
113
+ var n = s.update(d).finalize(r);
114
+ s.reset();
115
+ for (var a = 1; a < p; a++)
116
+ n = s.finalize(n), s.reset();
117
+ b.concat(n);
118
+ } b.sigBytes = 4 * q; return b; } });
119
+ u.EvpKDF = function (d, l, p) {
120
+ return s.create(p).compute(d, l);
121
+ };
122
+ })();
123
+ CryptoJS.lib.Cipher || function (u) {
124
+ var p = CryptoJS, d = p.lib, l = d.Base, s = d.WordArray, t = d.BufferedBlockAlgorithm, r = p.enc.Base64, w = p.algo.EvpKDF, v = d.Cipher = t.extend({ cfg: l.extend(), createEncryptor: function (e, a) { return this.create(this._ENC_XFORM_MODE, e, a); }, createDecryptor: function (e, a) { return this.create(this._DEC_XFORM_MODE, e, a); }, init: function (e, a, b) { this.cfg = this.cfg.extend(b); this._xformMode = e; this._key = a; this.reset(); }, reset: function () { t.reset.call(this); this._doReset(); }, process: function (e) { this._append(e); return this._process(); },
125
+ finalize: function (e) { e && this._append(e); return this._doFinalize(); }, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: function (e) { return { encrypt: function (b, k, d) { return ("string" == typeof k ? c : a).encrypt(e, b, k, d); }, decrypt: function (b, k, d) { return ("string" == typeof k ? c : a).decrypt(e, b, k, d); } }; } });
126
+ d.StreamCipher = v.extend({ _doFinalize: function () { return this._process(!0); }, blockSize: 1 });
127
+ var b = p.mode = {}, x = function (e, a, b) {
128
+ var c = this._iv;
129
+ c ? this._iv = u : c = this._prevBlock;
130
+ for (var d = 0; d < b; d++)
131
+ e[a + d] ^=
132
+ c[d];
133
+ }, q = (d.BlockCipherMode = l.extend({ createEncryptor: function (e, a) { return this.Encryptor.create(e, a); }, createDecryptor: function (e, a) { return this.Decryptor.create(e, a); }, init: function (e, a) { this._cipher = e; this._iv = a; } })).extend();
134
+ q.Encryptor = q.extend({ processBlock: function (e, a) { var b = this._cipher, c = b.blockSize; x.call(this, e, a, c); b.encryptBlock(e, a); this._prevBlock = e.slice(a, a + c); } });
135
+ q.Decryptor = q.extend({ processBlock: function (e, a) {
136
+ var b = this._cipher, c = b.blockSize, d = e.slice(a, a + c);
137
+ b.decryptBlock(e, a);
138
+ x.call(this, e, a, c);
139
+ this._prevBlock = d;
140
+ } });
141
+ b = b.CBC = q;
142
+ q = (p.pad = {}).Pkcs7 = { pad: function (a, b) { for (var c = 4 * b, c = c - a.sigBytes % c, d = c << 24 | c << 16 | c << 8 | c, l = [], n = 0; n < c; n += 4)
143
+ l.push(d); c = s.create(l, c); a.concat(c); }, unpad: function (a) { a.sigBytes -= a.words[a.sigBytes - 1 >>> 2] & 255; } };
144
+ d.BlockCipher = v.extend({ cfg: v.cfg.extend({ mode: b, padding: q }), reset: function () {
145
+ v.reset.call(this);
146
+ var a = this.cfg, b = a.iv, a = a.mode;
147
+ if (this._xformMode == this._ENC_XFORM_MODE)
148
+ var c = a.createEncryptor;
149
+ else
150
+ c = a.createDecryptor, this._minBufferSize = 1;
151
+ this._mode = c.call(a, this, b && b.words);
152
+ }, _doProcessBlock: function (a, b) { this._mode.processBlock(a, b); }, _doFinalize: function () { var a = this.cfg.padding; if (this._xformMode == this._ENC_XFORM_MODE) {
153
+ a.pad(this._data, this.blockSize);
154
+ var b = this._process(!0);
155
+ }
156
+ else
157
+ b = this._process(!0), a.unpad(b); return b; }, blockSize: 4 });
158
+ var n = d.CipherParams = l.extend({ init: function (a) { this.mixIn(a); }, toString: function (a) { return (a || this.formatter).stringify(this); } }), b = (p.format = {}).OpenSSL = { stringify: function (a) {
159
+ var b = a.ciphertext;
160
+ a = a.salt;
161
+ return (a ? s.create([1398893684,
162
+ 1701076831]).concat(a).concat(b) : b).toString(r);
163
+ }, parse: function (a) { a = r.parse(a); var b = a.words; if (1398893684 == b[0] && 1701076831 == b[1]) {
164
+ var c = s.create(b.slice(2, 4));
165
+ b.splice(0, 4);
166
+ a.sigBytes -= 16;
167
+ } return n.create({ ciphertext: a, salt: c }); } }, a = d.SerializableCipher = l.extend({ cfg: l.extend({ format: b }), encrypt: function (a, b, c, d) { d = this.cfg.extend(d); var l = a.createEncryptor(c, d); b = l.finalize(b); l = l.cfg; return n.create({ ciphertext: b, key: c, iv: l.iv, algorithm: a, mode: l.mode, padding: l.padding, blockSize: a.blockSize, formatter: d.format }); },
168
+ decrypt: function (a, b, c, d) { d = this.cfg.extend(d); b = this._parse(b, d.format); return a.createDecryptor(c, d).finalize(b.ciphertext); }, _parse: function (a, b) { return "string" == typeof a ? b.parse(a, this) : a; } }), p = (p.kdf = {}).OpenSSL = { execute: function (a, b, c, d) { d || (d = s.random(8)); a = w.create({ keySize: b + c }).compute(a, d); c = s.create(a.words.slice(b), 4 * c); a.sigBytes = 4 * b; return n.create({ key: a, iv: c, salt: d }); } }, c = d.PasswordBasedCipher = a.extend({ cfg: a.cfg.extend({ kdf: p }), encrypt: function (b, c, d, l) {
169
+ l = this.cfg.extend(l);
170
+ d = l.kdf.execute(d, b.keySize, b.ivSize);
171
+ l.iv = d.iv;
172
+ b = a.encrypt.call(this, b, c, d.key, l);
173
+ b.mixIn(d);
174
+ return b;
175
+ }, decrypt: function (b, c, d, l) { l = this.cfg.extend(l); c = this._parse(c, l.format); d = l.kdf.execute(d, b.keySize, b.ivSize, c.salt); l.iv = d.iv; return a.decrypt.call(this, b, c, d.key, l); } });
176
+ }();
177
+ (function () {
178
+ for (var u = CryptoJS, p = u.lib.BlockCipher, d = u.algo, l = [], s = [], t = [], r = [], w = [], v = [], b = [], x = [], q = [], n = [], a = [], c = 0; 256 > c; c++)
179
+ a[c] = 128 > c ? c << 1 : c << 1 ^ 283;
180
+ for (var e = 0, j = 0, c = 0; 256 > c; c++) {
181
+ var k = j ^ j << 1 ^ j << 2 ^ j << 3 ^ j << 4, k = k >>> 8 ^ k & 255 ^ 99;
182
+ l[e] = k;
183
+ s[k] = e;
184
+ var z = a[e], F = a[z], G = a[F], y = 257 * a[k] ^ 16843008 * k;
185
+ t[e] = y << 24 | y >>> 8;
186
+ r[e] = y << 16 | y >>> 16;
187
+ w[e] = y << 8 | y >>> 24;
188
+ v[e] = y;
189
+ y = 16843009 * G ^ 65537 * F ^ 257 * z ^ 16843008 * e;
190
+ b[k] = y << 24 | y >>> 8;
191
+ x[k] = y << 16 | y >>> 16;
192
+ q[k] = y << 8 | y >>> 24;
193
+ n[k] = y;
194
+ e ? (e = z ^ a[a[a[G ^ z]]], j ^= a[a[j]]) : e = j = 1;
195
+ }
196
+ var H = [0, 1, 2, 4, 8,
197
+ 16, 32, 64, 128, 27, 54], d = d.AES = p.extend({ _doReset: function () {
198
+ for (var a = this._key, c = a.words, d = a.sigBytes / 4, a = 4 * ((this._nRounds = d + 6) + 1), e = this._keySchedule = [], j = 0; j < a; j++)
199
+ if (j < d)
200
+ e[j] = c[j];
201
+ else {
202
+ var k = e[j - 1];
203
+ j % d ? 6 < d && 4 == j % d && (k = l[k >>> 24] << 24 | l[k >>> 16 & 255] << 16 | l[k >>> 8 & 255] << 8 | l[k & 255]) : (k = k << 8 | k >>> 24, k = l[k >>> 24] << 24 | l[k >>> 16 & 255] << 16 | l[k >>> 8 & 255] << 8 | l[k & 255], k ^= H[j / d | 0] << 24);
204
+ e[j] = e[j - d] ^ k;
205
+ }
206
+ c = this._invKeySchedule = [];
207
+ for (d = 0; d < a; d++)
208
+ j = a - d, k = d % 4 ? e[j] : e[j - 4], c[d] = 4 > d || 4 >= j ? k : b[l[k >>> 24]] ^ x[l[k >>> 16 & 255]] ^ q[l[k >>>
209
+ 8 & 255]] ^ n[l[k & 255]];
210
+ }, encryptBlock: function (a, b) { this._doCryptBlock(a, b, this._keySchedule, t, r, w, v, l); }, decryptBlock: function (a, c) { var d = a[c + 1]; a[c + 1] = a[c + 3]; a[c + 3] = d; this._doCryptBlock(a, c, this._invKeySchedule, b, x, q, n, s); d = a[c + 1]; a[c + 1] = a[c + 3]; a[c + 3] = d; }, _doCryptBlock: function (a, b, c, d, e, j, l, f) {
211
+ for (var m = this._nRounds, g = a[b] ^ c[0], h = a[b + 1] ^ c[1], k = a[b + 2] ^ c[2], n = a[b + 3] ^ c[3], p = 4, r = 1; r < m; r++)
212
+ var q = d[g >>> 24] ^ e[h >>> 16 & 255] ^ j[k >>> 8 & 255] ^ l[n & 255] ^ c[p++], s = d[h >>> 24] ^ e[k >>> 16 & 255] ^ j[n >>> 8 & 255] ^ l[g & 255] ^ c[p++], t = d[k >>> 24] ^ e[n >>> 16 & 255] ^ j[g >>> 8 & 255] ^ l[h & 255] ^ c[p++], n = d[n >>> 24] ^ e[g >>> 16 & 255] ^ j[h >>> 8 & 255] ^ l[k & 255] ^ c[p++], g = q, h = s, k = t;
213
+ q = (f[g >>> 24] << 24 | f[h >>> 16 & 255] << 16 | f[k >>> 8 & 255] << 8 | f[n & 255]) ^ c[p++];
214
+ s = (f[h >>> 24] << 24 | f[k >>> 16 & 255] << 16 | f[n >>> 8 & 255] << 8 | f[g & 255]) ^ c[p++];
215
+ t = (f[k >>> 24] << 24 | f[n >>> 16 & 255] << 16 | f[g >>> 8 & 255] << 8 | f[h & 255]) ^ c[p++];
216
+ n = (f[n >>> 24] << 24 | f[g >>> 16 & 255] << 16 | f[h >>> 8 & 255] << 8 | f[k & 255]) ^ c[p++];
217
+ a[b] = q;
218
+ a[b + 1] = s;
219
+ a[b + 2] = t;
220
+ a[b + 3] = n;
221
+ }, keySize: 8 });
222
+ u.AES = p._createHelper(d);
223
+ })();
224
+ export default CryptoJS;
225
+ //# sourceMappingURL=aes.js.map