@sebastienrousseau/crypto-cli 0.0.1 → 0.0.7

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 (91) hide show
  1. package/README.md +228 -235
  2. package/dist/cli.js +67 -1
  3. package/dist/commands/decrypt.command.d.ts.map +1 -1
  4. package/dist/commands/decrypt.command.js +3 -4
  5. package/dist/commands/encrypt.command.d.ts.map +1 -1
  6. package/dist/commands/encrypt.command.js +2 -3
  7. package/dist/commands/generate.command.d.ts.map +1 -1
  8. package/dist/commands/generate.command.js +24 -25
  9. package/dist/commands/help.command.d.ts.map +1 -1
  10. package/dist/commands/index.d.ts +6 -0
  11. package/dist/commands/index.d.ts.map +1 -1
  12. package/dist/commands/index.js +7 -0
  13. package/dist/commands/modern/cbom.command.d.ts +10 -0
  14. package/dist/commands/modern/cbom.command.d.ts.map +1 -0
  15. package/dist/commands/modern/cbom.command.js +164 -0
  16. package/dist/commands/modern/encrypt.command.d.ts +3 -0
  17. package/dist/commands/modern/encrypt.command.d.ts.map +1 -0
  18. package/dist/commands/modern/encrypt.command.js +125 -0
  19. package/dist/commands/modern/hash.command.d.ts +3 -0
  20. package/dist/commands/modern/hash.command.d.ts.map +1 -0
  21. package/dist/commands/modern/hash.command.js +91 -0
  22. package/dist/commands/modern/index.d.ts +9 -0
  23. package/dist/commands/modern/index.d.ts.map +1 -0
  24. package/dist/commands/modern/index.js +21 -0
  25. package/dist/commands/modern/keygen.command.d.ts +3 -0
  26. package/dist/commands/modern/keygen.command.d.ts.map +1 -0
  27. package/dist/commands/modern/keygen.command.js +113 -0
  28. package/dist/commands/modern/password-hash.command.d.ts +3 -0
  29. package/dist/commands/modern/password-hash.command.d.ts.map +1 -0
  30. package/dist/commands/modern/password-hash.command.js +106 -0
  31. package/dist/commands/modern/sign.command.d.ts +3 -0
  32. package/dist/commands/modern/sign.command.d.ts.map +1 -0
  33. package/dist/commands/modern/sign.command.js +135 -0
  34. package/dist/commands/reformat.command.d.ts.map +1 -1
  35. package/dist/commands/reformat.command.js +2 -3
  36. package/dist/commands/revoke.command.d.ts.map +1 -1
  37. package/dist/commands/revoke.command.js +2 -3
  38. package/dist/commands/session.command.d.ts.map +1 -1
  39. package/dist/commands/session.command.js +2 -3
  40. package/dist/commands/sign.command.d.ts.map +1 -1
  41. package/dist/commands/sign.command.js +2 -3
  42. package/dist/commands/verify.command.d.ts.map +1 -1
  43. package/dist/commands/verify.command.js +12 -13
  44. package/dist/constants/en.d.ts.map +1 -1
  45. package/dist/constants/en.js +87 -87
  46. package/dist/constants/fr.d.ts +1 -1
  47. package/dist/constants/fr.d.ts.map +1 -1
  48. package/dist/constants/fr.js +24 -24
  49. package/dist/constants/index.d.ts +4 -2
  50. package/dist/constants/index.d.ts.map +1 -1
  51. package/dist/constants/index.js +25 -20
  52. package/dist/helpers/banner.d.ts +1 -1
  53. package/dist/helpers/banner.d.ts.map +1 -1
  54. package/dist/utils/version.utils.d.ts.map +1 -1
  55. package/dist/utils/write.utils.d.ts.map +1 -1
  56. package/dist/utils/write.utils.js +1 -1
  57. package/package.json +123 -126
  58. package/dist/.DS_Store +0 -0
  59. package/dist/COPYRIGHT +0 -15
  60. package/dist/Makefile +0 -122
  61. package/dist/Report.txt +0 -176
  62. package/dist/cli.js.map +0 -1
  63. package/dist/commands/decrypt.command.js.map +0 -1
  64. package/dist/commands/encrypt.command.js.map +0 -1
  65. package/dist/commands/generate.command.js.map +0 -1
  66. package/dist/commands/help.command.js.map +0 -1
  67. package/dist/commands/index.js.map +0 -1
  68. package/dist/commands/reformat.command.js.map +0 -1
  69. package/dist/commands/revoke.command.js.map +0 -1
  70. package/dist/commands/session.command.js.map +0 -1
  71. package/dist/commands/sign.command.js.map +0 -1
  72. package/dist/commands/verify.command.js.map +0 -1
  73. package/dist/constants/en.js.map +0 -1
  74. package/dist/constants/fr.js.map +0 -1
  75. package/dist/constants/index.js.map +0 -1
  76. package/dist/helpers/banner.js.map +0 -1
  77. package/dist/key/key.d.ts +0 -17
  78. package/dist/key/key.d.ts.map +0 -1
  79. package/dist/key/key.js +0 -19
  80. package/dist/key/key.js.map +0 -1
  81. package/dist/key/rsa-reformat.cert +0 -1
  82. package/dist/key/rsa-reformat.key +0 -1
  83. package/dist/key/rsa-reformat.pub +0 -1
  84. package/dist/key/rsa-revoke.key +0 -1
  85. package/dist/key/rsa-revoke.pub +0 -1
  86. package/dist/key/rsa.cert +0 -1
  87. package/dist/key/rsa.key +0 -1
  88. package/dist/key/rsa.pub +0 -1
  89. package/dist/package.json +0 -129
  90. package/dist/utils/version.utils.js.map +0 -1
  91. package/dist/utils/write.utils.js.map +0 -1
package/dist/package.json DELETED
@@ -1,129 +0,0 @@
1
- {
2
- "author": "Sebastien Rousseau <sebastienrousseau@users.noreply.github.com>",
3
- "autoupdate": {
4
- "fileMap": [
5
- {
6
- "basePath": "dist",
7
- "files": [
8
- "**/*"
9
- ]
10
- }
11
- ],
12
- "source": "git",
13
- "target": "git://github.com/sebastienrousseau/crypto-service.git"
14
- },
15
- "bin": {
16
- "cryptocli": "dist/cli"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/sebastienrousseau/crypto-service/issues"
20
- },
21
- "dependencies": {
22
- "@types/openpgp": "^4.4.18",
23
- "figlet": "^1.5.2",
24
- "kleur": "^4.1.5",
25
- "openpgp": "^5.3.1",
26
- "prompts": "^2.4.2"
27
- },
28
- "description": "The Crypto Lib Command Line Interface (CLI) is a unified tool to perform common cryptographic operations such as key generation, data encryption, digital signing, and signature verification which are invoked from the command prompt or terminal.",
29
- "devDependencies": {
30
- "@sebastienrousseau/c8-config": "^0.0.3",
31
- "@sebastienrousseau/crypto-lib": "0.0.2",
32
- "@sebastienrousseau/eslint-config": "^0.0.2",
33
- "@sebastienrousseau/jsdoc-config": "^0.0.5",
34
- "@sebastienrousseau/markdownlint-config": "^0.0.1",
35
- "@sebastienrousseau/mocha-config": "^0.0.5",
36
- "@sebastienrousseau/prettier-config": "^0.0.4",
37
- "@sebastienrousseau/remark-config": "^0.0.3",
38
- "@types/chai": "^4.3.1",
39
- "@types/chai-as-promised": "^7.1.5",
40
- "@types/figlet": "^1.5.4",
41
- "@types/mocha": "^9.1.1",
42
- "@types/prompts": "^2.0.14",
43
- "@typescript-eslint/eslint-plugin": "^5.30.5",
44
- "@typescript-eslint/parser": "^5.30.5",
45
- "c8": "^7.11.3",
46
- "chai": "^4.3.6",
47
- "chai-as-promised": "^7.1.1",
48
- "coveralls": "^3.1.1",
49
- "eslint": "^8.19.0",
50
- "eslint-import-resolver-typescript": "^3.2.4",
51
- "eslint-plugin-import": "^2.26.0",
52
- "filesizes": "^0.1.2",
53
- "mocha": "^10.0.0",
54
- "prettier": "^2.7.1",
55
- "remark-cli": "^11.0.0",
56
- "remark-footnotes": "^4.0.1",
57
- "remark-preset-lint-consistent": "^5.1.1",
58
- "remark-preset-lint-markdown-style-guide": "^5.1.2",
59
- "remark-preset-lint-recommended": "^6.1.2",
60
- "rimraf": "^3.0.2",
61
- "ts-node": "^10.8.2",
62
- "typedoc": "^0.23.6",
63
- "typedoc-plugin-missing-exports": "^0.23.0",
64
- "typescript": "^4.7.4"
65
- },
66
- "directories": {
67
- "src": "./src",
68
- "test": "__tests__"
69
- },
70
- "engines": {
71
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
72
- },
73
- "files": [
74
- "dist/**/*"
75
- ],
76
- "funding": [
77
- {
78
- "type": "github",
79
- "url": "https://github.com/sponsors/sebastienrousseau"
80
- },
81
- {
82
- "type": "paypal",
83
- "url": "https://paypal.me/wwdseb"
84
- }
85
- ],
86
- "homepage": "https://cryptocli.io",
87
- "keywords": [
88
- "cli"
89
- ],
90
- "license": "MIT",
91
- "license_URI": "http://www.opensource.org/licenses/mit-license.php",
92
- "lockfileVersion": 1,
93
- "main": "./dist/cli.js",
94
- "name": "@sebastienrousseau/crypto-cli",
95
- "private": false,
96
- "publishConfig": {
97
- "access": "public",
98
- "registry": "https://npm.pkg.github.com"
99
- },
100
- "repository": {
101
- "directory": "packages/crypto-cli",
102
- "type": "git",
103
- "url": "git@github.com:sebastienrousseau/crypto-service.git"
104
- },
105
- "scripts": {
106
- "build": "tsc --build tsconfig.json && yarn run copy:makefile && yarn copy:package && yarn run copy:copyright && yarn copy:key && yarn run filesize:distribution",
107
- "clean": "rimraf ./coverage ./dist ./docs ./node_modules",
108
- "copy:copyright": "cp COPYRIGHT dist/",
109
- "copy:key": "cp src/key/*.pub dist/key/ && cp src/key/*.key dist/key/ && cp src/key/*.cert dist/key/",
110
- "copy:license": "cp LICENSE dist/",
111
- "copy:makefile": "cp Makefile dist/",
112
- "copy:package": "cp package.json dist/",
113
- "copy:readme": "cp README.md dist/",
114
- "docs": "typedoc",
115
- "filesize:distribution": "filesizes dist/ > dist/Report.txt",
116
- "lint:fix": "eslint --cache --fix src/**/*.ts",
117
- "lint": "eslint src/**/*.ts",
118
- "markdown": "yarn remark ./*.md packages/**/*.md --rc-path ./.remarkrc --quiet",
119
- "prepack": "yarn build",
120
- "format": "prettier --write src/**/*.ts",
121
- "release": "yarn release:prepare && yarn release:publish",
122
- "release:prepare": "yarn pack",
123
- "release:publish": "yarn publish --access public --ignore-scripts --@OWNER:registry='https://registry.npmjs.org' && npm publish",
124
- "start": "node dist/cli.js",
125
- "test": "npx c8 --config=.c8rc --reporter=lcov mocha --config=.mocharc"
126
- },
127
- "types": "./dist/index.d.ts",
128
- "version": "0.0.1"
129
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.utils.js","sourceRoot":"","sources":["../../src/utils/version.utils.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,+BAAuC;AAEvC,IAAI,OAAO,GAAG,EAAE,CAAC;AAEV,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;IACnC,IAAI,OAAO,EAAE;QACX,OAAO,OAAO,CAAC;KAChB;IAED,MAAM,eAAe,GAAG,IAAA,gBAAS,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,MAAM,IAAA,mBAAQ,EAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CACvD,CAAC;IAEF,MAAM,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC;IAEvD,OAAO,GAAG,IAAI,UAAU,EAAE,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAdW,QAAA,UAAU,cAcrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"write.utils.js","sourceRoot":"","sources":["../../src/utils/write.utils.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,CAAS,EAAE,SAAS,GAAG,KAAK,EAAE,KAAK,GAAG,KAAK;QACxD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvD,IAAI,SAAS,IAAI,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAChE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACjB;aAAM;YACL,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;SACxB;IACH,CAAC;CACF;AATD,gCASC"}