scanoss 0.15.7 → 0.16.0

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 (127) hide show
  1. package/CHANGELOG.md +53 -97
  2. package/LICENSE +20 -20
  3. package/README.md +75 -3
  4. package/assets/ReportHTMLTemplate/index.html +11 -8
  5. package/assets/data/scanoss-crypto-library-rules.json +2930 -0
  6. package/build/main/cli/bin/cli-bin.js +6 -2
  7. package/build/main/cli/commands/crypto.js +14 -7
  8. package/build/main/cli/commands/scan.js +66 -23
  9. package/build/main/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.d.ts +19 -0
  10. package/build/main/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.js +27 -0
  11. package/build/main/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.d.ts +1 -0
  12. package/build/main/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.js +39 -0
  13. package/build/main/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.d.ts +42 -0
  14. package/build/main/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.js +87 -0
  15. package/build/main/sdk/Cryptography/{CryptoDef/CryptoDef.d.ts → Algorithm/Files/Helper/Helper.d.ts} +1 -1
  16. package/build/main/sdk/Cryptography/{CryptoDef/CryptoDef.js → Algorithm/Files/Helper/Helper.js} +1 -1
  17. package/build/main/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.d.ts +2 -2
  18. package/build/main/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.js +1 -1
  19. package/build/main/sdk/Cryptography/BaseCryptographyScanner.d.ts +25 -0
  20. package/build/main/sdk/Cryptography/BaseCryptographyScanner.js +23 -0
  21. package/build/main/sdk/Cryptography/CryptoCfg.d.ts +32 -5
  22. package/build/main/sdk/Cryptography/CryptoCfg.js +35 -5
  23. package/build/main/sdk/Cryptography/CryptographyScanner.d.ts +15 -21
  24. package/build/main/sdk/Cryptography/CryptographyScanner.js +31 -41
  25. package/build/main/sdk/Cryptography/CryptographyTypes.d.ts +47 -3
  26. package/build/main/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.d.ts +32 -0
  27. package/build/main/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.js +66 -0
  28. package/build/main/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.d.ts +36 -0
  29. package/build/main/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.js +65 -0
  30. package/build/main/sdk/Cryptography/Hint/Components/ComponentHintScanner.d.ts +19 -0
  31. package/build/main/sdk/Cryptography/Hint/Components/ComponentHintScanner.js +27 -0
  32. package/build/main/sdk/Cryptography/Hint/Files/FileHintScanner.d.ts +35 -0
  33. package/build/main/sdk/Cryptography/Hint/Files/FileHintScanner.js +69 -0
  34. package/build/main/sdk/Cryptography/Hint/Files/HintProcessor.d.ts +1 -0
  35. package/build/main/sdk/Cryptography/Hint/Files/HintProcessor.js +34 -0
  36. package/build/main/sdk/Filtering/Filtering.js +1 -2
  37. package/build/main/sdk/Logger.d.ts +2 -0
  38. package/build/main/sdk/Logger.js +7 -2
  39. package/build/main/sdk/Report/DataLayer/DataLayerTypes.d.ts +8 -4
  40. package/build/main/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.d.ts +7 -7
  41. package/build/main/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.js +71 -11
  42. package/build/main/sdk/Services/Grpc/BaseService.js +1 -1
  43. package/build/main/sdk/Services/Grpc/CryptographyService.d.ts +3 -0
  44. package/build/main/sdk/Services/Grpc/CryptographyService.js +16 -1
  45. package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.d.ts +72 -0
  46. package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.js +87 -3
  47. package/build/main/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_pb.js +1987 -127
  48. package/build/main/sdk/Utils/Concurrency/Job.d.ts +8 -0
  49. package/build/main/sdk/Utils/Concurrency/Job.js +17 -0
  50. package/build/main/sdk/Utils/Concurrency/JobProcessor.d.ts +10 -0
  51. package/build/main/sdk/Utils/Concurrency/JobProcessor.js +51 -0
  52. package/build/main/sdk/Utils/Concurrency/WorkerPool.d.ts +14 -0
  53. package/build/main/sdk/Utils/Concurrency/WorkerPool.js +69 -0
  54. package/build/main/sdk/Utils/Concurrency/types.d.ts +18 -0
  55. package/build/main/sdk/Utils/Concurrency/types.js +3 -0
  56. package/build/main/sdk/scanner/ScannerTypes.js +1 -1
  57. package/build/main/tsconfig.tsbuildinfo +1 -1
  58. package/build/module/cli/bin/cli-bin.js +6 -2
  59. package/build/module/cli/commands/crypto.js +14 -7
  60. package/build/module/cli/commands/scan.js +66 -23
  61. package/build/module/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.d.ts +19 -0
  62. package/build/module/sdk/Cryptography/Algorithm/Components/ComponentAlgorithmScanner.js +23 -0
  63. package/build/module/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.d.ts +1 -0
  64. package/build/module/sdk/Cryptography/Algorithm/Files/AlgorithmProcessor.js +36 -0
  65. package/build/module/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.d.ts +42 -0
  66. package/build/module/sdk/Cryptography/Algorithm/Files/FileAlgorithmScanner.js +80 -0
  67. package/build/module/sdk/Cryptography/{CryptoDef/CryptoDef.d.ts → Algorithm/Files/Helper/Helper.d.ts} +1 -1
  68. package/build/module/sdk/Cryptography/{CryptoDef/CryptoDef.js → Algorithm/Files/Helper/Helper.js} +1 -1
  69. package/build/module/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.d.ts +2 -2
  70. package/build/module/sdk/Cryptography/{Scanneable → Algorithm/Files/Scanneable}/CryptoItem.js +1 -1
  71. package/build/module/sdk/Cryptography/BaseCryptographyScanner.d.ts +25 -0
  72. package/build/module/sdk/Cryptography/BaseCryptographyScanner.js +21 -0
  73. package/build/module/sdk/Cryptography/CryptoCfg.d.ts +32 -5
  74. package/build/module/sdk/Cryptography/CryptoCfg.js +39 -6
  75. package/build/module/sdk/Cryptography/CryptographyScanner.d.ts +15 -21
  76. package/build/module/sdk/Cryptography/CryptographyScanner.js +32 -39
  77. package/build/module/sdk/Cryptography/CryptographyTypes.d.ts +47 -3
  78. package/build/module/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.d.ts +32 -0
  79. package/build/module/sdk/Cryptography/Helper/ResultCollector/Component/ComponentCryptographyResultColletor.js +60 -0
  80. package/build/module/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.d.ts +36 -0
  81. package/build/module/sdk/Cryptography/Helper/ResultCollector/File/FileCryptographyResultCollector.js +59 -0
  82. package/build/module/sdk/Cryptography/Hint/Components/ComponentHintScanner.d.ts +19 -0
  83. package/build/module/sdk/Cryptography/Hint/Components/ComponentHintScanner.js +23 -0
  84. package/build/module/sdk/Cryptography/Hint/Files/FileHintScanner.d.ts +35 -0
  85. package/build/module/sdk/Cryptography/Hint/Files/FileHintScanner.js +62 -0
  86. package/build/module/sdk/Cryptography/Hint/Files/HintProcessor.d.ts +1 -0
  87. package/build/module/sdk/Cryptography/Hint/Files/HintProcessor.js +31 -0
  88. package/build/module/sdk/Filtering/Filtering.js +1 -2
  89. package/build/module/sdk/Logger.d.ts +2 -0
  90. package/build/module/sdk/Logger.js +8 -2
  91. package/build/module/sdk/Report/DataLayer/DataLayerTypes.d.ts +8 -4
  92. package/build/module/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.d.ts +7 -7
  93. package/build/module/sdk/Report/DataLayer/DataProviders/CryptographyDataProvider.js +73 -14
  94. package/build/module/sdk/Services/Grpc/BaseService.js +1 -1
  95. package/build/module/sdk/Services/Grpc/CryptographyService.d.ts +3 -0
  96. package/build/module/sdk/Services/Grpc/CryptographyService.js +16 -1
  97. package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.d.ts +72 -0
  98. package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_grpc_pb.js +87 -3
  99. package/build/module/sdk/Services/Grpc/scanoss/api/cryptography/v2/scanoss-cryptography_pb.js +1987 -127
  100. package/build/module/sdk/Utils/Concurrency/Job.d.ts +8 -0
  101. package/build/module/sdk/Utils/Concurrency/Job.js +14 -0
  102. package/build/module/sdk/Utils/Concurrency/JobProcessor.d.ts +10 -0
  103. package/build/module/sdk/Utils/Concurrency/JobProcessor.js +47 -0
  104. package/build/module/sdk/Utils/Concurrency/WorkerPool.d.ts +14 -0
  105. package/build/module/sdk/Utils/Concurrency/WorkerPool.js +65 -0
  106. package/build/module/sdk/Utils/Concurrency/types.d.ts +18 -0
  107. package/build/module/sdk/Utils/Concurrency/types.js +2 -0
  108. package/build/module/sdk/scanner/ScannerTypes.js +1 -1
  109. package/build/module/tsconfig.module.tsbuildinfo +1 -1
  110. package/package.json +1 -1
  111. package/build/main/sdk/Cryptography/CryptoProvider/LocalCrypto.d.ts +0 -21
  112. package/build/main/sdk/Cryptography/CryptoProvider/LocalCrypto.js +0 -37
  113. package/build/main/sdk/Cryptography/Worker/ThreadPool.d.ts +0 -21
  114. package/build/main/sdk/Cryptography/Worker/ThreadPool.js +0 -87
  115. package/build/main/sdk/Cryptography/Worker/Worker.d.ts +0 -15
  116. package/build/main/sdk/Cryptography/Worker/Worker.js +0 -69
  117. package/build/main/sdk/Cryptography/utils/adapters/cryptoAdapters.d.ts +0 -8
  118. package/build/main/sdk/Cryptography/utils/adapters/cryptoAdapters.js +0 -15
  119. package/build/module/sdk/Cryptography/CryptoProvider/LocalCrypto.d.ts +0 -21
  120. package/build/module/sdk/Cryptography/CryptoProvider/LocalCrypto.js +0 -36
  121. package/build/module/sdk/Cryptography/Worker/ThreadPool.d.ts +0 -21
  122. package/build/module/sdk/Cryptography/Worker/ThreadPool.js +0 -89
  123. package/build/module/sdk/Cryptography/Worker/Worker.d.ts +0 -15
  124. package/build/module/sdk/Cryptography/Worker/Worker.js +0 -66
  125. package/build/module/sdk/Cryptography/utils/adapters/cryptoAdapters.d.ts +0 -8
  126. package/build/module/sdk/Cryptography/utils/adapters/cryptoAdapters.js +0 -12
  127. /package/assets/data/{defaultCryptoRules.json → scanoss-crypto-algorithm-rules.json} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,102 +2,58 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [0.15.7](https://github.com/scanoss/scanoss.js/compare/v0.15.6...v0.15.7) (2025-03-05)
6
-
7
- ### [0.15.6](https://github.com/scanoss/scanoss.js/compare/v0.15.5...v0.15.6) (2025-01-08)
8
-
9
- ### [0.15.5](https://github.com/scanoss/scanoss.js/compare/v0.15.4...v0.15.5) (2024-12-30)
10
-
11
- ### [0.15.4](https://github.com/scanoss/scanoss.js/compare/v0.15.3...v0.15.4) (2024-11-27)
12
-
13
- ### [0.15.3](https://github.com/scanoss/scanoss.js/compare/v0.15.2...v0.15.3) (2024-11-24)
14
-
15
- ### [0.15.2](https://github.com/scanoss/scanoss.js/compare/v0.15.1...v0.15.2) (2024-08-29)
16
-
17
- ### [0.15.1](https://github.com/scanoss/scanoss.js/compare/v0.15.0...v0.15.1) (2024-08-27)
18
-
19
- ### [0.15.0](https://github.com/scanoss/scanoss.js/compare/v0.14.1...v0.15.0) (2024-07-28)
20
-
21
- ### [0.14.1](https://github.com/scanoss/scanoss.js/compare/v0.14.0...v0.14.1) (2024-06-05)
22
-
23
- ### [0.14.0](https://github.com/scanoss/scanoss.js/compare/v0.13.2...v0.14.0) (2024-05-23)
24
-
25
- ### [0.13.2](https://github.com/scanoss/scanoss.js/compare/v0.13.1...v0.13.2) (2024-05-20)
26
-
27
- ### [0.13.1](https://github.com/scanoss/scanoss.js/compare/v0.13.0...v0.13.1) (2024-05-15)
28
-
29
- ### [0.13.0](https://github.com/scanoss/scanoss.js/compare/v0.12.2...v0.13.0) (2024-05-13)
30
-
31
- ### [0.12.2](https://github.com/scanoss/scanoss.js/compare/v0.12.0...v0.12.2) (2024-05-10)
32
-
33
- ### [0.12.0](https://github.com/scanoss/scanoss.js/compare/v0.11.5...v0.12.0) (2024-05-06)
34
-
35
- ### [0.11.5](https://github.com/scanoss/scanoss.js/compare/v0.11.4...v0.11.5) (2024-04-19)
36
-
37
- ### [0.11.4](https://github.com/scanoss/scanoss.js/compare/v0.11.3...v0.11.4) (2024-04-02)
38
-
39
- ### [0.11.3](https://github.com/scanoss/scanoss.js/compare/v0.11.2...v0.11.3) (2024-01-09)
40
-
41
- ### [0.11.2](https://github.com/scanoss/scanoss.js/compare/v0.11.1...v0.11.2) (2024-01-09)
42
-
43
- ### [0.11.1](https://github.com/scanoss/scanoss.js/compare/v0.11.0...v0.11.1) (2024-01-09)
44
-
45
- ### [0.11.0](https://github.com/scanoss/scanoss.js/compare/v0.10.5...v0.11.0) (2024-01-04)
46
-
47
- ### [0.10.5](https://github.com/scanoss/scanoss.js/compare/v0.10.4...v0.10.5) (2023-12-29)
48
-
49
- ### [0.10.4](https://github.com/scanoss/scanoss.js/compare/v0.10.3...v0.10.4) (2023-12-28)
50
-
51
- ### [0.10.3](https://github.com/scanoss/scanoss.js/compare/v0.10.2...v0.10.3) (2023-12-22)
52
-
53
- ### [0.10.2](https://github.com/scanoss/scanoss.js/compare/v0.10.1...v0.10.2) (2023-12-19)
54
-
55
- ### [0.10.1](https://github.com/scanoss/scanoss.js/compare/v0.10.0...v0.10.1) (2023-11-22)
56
-
57
- ### [0.10.0](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.10.0) (2023-11-22)
58
-
59
- ### [0.9.3](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.9.3) (2023-10-20)
60
-
61
- ### [0.9.2](https://github.com/scanoss/scanoss.js/compare/v0.9.1...v0.9.2) (2023-10-09)
62
-
63
- ### [0.9.1](https://github.com/scanoss/scanoss.js/compare/v0.9.0...v0.9.1) (2023-05-18)
64
-
65
- ### [0.9.0](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.9.0) (2023-04-19)
66
-
67
- ### [0.8.8](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.8.8) (2023-04-16)
68
-
69
- ### [0.8.7](https://github.com/scanoss/scanoss.js/compare/v0.8.6...v0.8.7) (2023-04-12)
70
-
71
- ### [0.8.6](https://github.com/scanoss/scanoss.js/compare/v0.8.5...v0.8.6) (2023-03-28)
72
-
73
- ### [0.8.5](https://github.com/scanoss/scanoss.js/compare/v0.8.0...v0.8.5) (2023-03-17)
74
-
75
- ### [0.8.0](https://github.com/scanoss/scanoss.js/compare/v0.7.8...v0.8.0) (2023-02-20)
76
-
77
- ### [0.7.8](https://github.com/scanoss/scanoss.js/compare/v0.4.0...v0.7.8) (2023-01-25)
78
-
79
- ### [0.4.0](https://github.com/scanoss/scanoss.js/compare/v0.4.0-beta...v0.4.0) (2022-09-30)
80
-
81
- ### [0.4.0-beta](https://github.com/scanoss/scanoss.js/compare/v0.4.0-alpha.0...v0.4.0-beta) (2022-08-31)
82
-
83
- ### [0.4.0-alpha.0](https://github.com/scanoss/scanoss.js/compare/v0.3.0...v0.4.0-alpha.0) (2022-08-19)
84
-
85
- ### [0.3.0](https://github.com/scanoss/scanoss.js/compare/v0.2.18...v0.3.0) (2022-07-02)
86
-
87
- ### [0.2.18](https://github.com/scanoss/scanoss.js/compare/v0.2.16...v0.2.18) (2022-02-23)
88
-
89
- ### [0.2.16](https://github.com/scanoss/scanoss.js/compare/v0.2.14...v0.2.16) (2022-02-14)
90
-
91
- ### [0.2.14](https://github.com/scanoss/scanoss.js/compare/v0.2.10...v0.2.14) (2022-02-09)
92
-
93
- ### [0.2.10](https://github.com/scanoss/scanoss.js/compare/v0.2.8...v0.2.10) (2022-01-11)
94
-
95
- ### [0.2.8](https://github.com/scanoss/scanoss.js/compare/v0.2.6...v0.2.8) (2022-01-10)
96
-
97
- ### [0.2.6](https://github.com/scanoss/scanoss.js/compare/v0.2.4...v0.2.6) (2022-01-06)
98
-
99
- ### [0.2.4](https://github.com/scanoss/scanoss.js/compare/v0.2.2...v0.2.4) (2022-01-05)
100
-
101
- ### 0.2.2 (2021-12-30)
5
+ ## [0.16.0] (2025-04-22)
6
+ ### Added
7
+ - Added local cryptography library scanning
102
8
 
103
9
  ### 0.1.2 (2021-12-28)
10
+ ### 0.2.2 (2021-12-30)
11
+ ### [0.2.4](https://github.com/scanoss/scanoss.js/compare/v0.2.2...v0.2.4) (2022-01-05)
12
+ ### [0.2.6](https://github.com/scanoss/scanoss.js/compare/v0.2.4...v0.2.6) (2022-01-06)
13
+ ### [0.2.8](https://github.com/scanoss/scanoss.js/compare/v0.2.6...v0.2.8) (2022-01-10)
14
+ ### [0.2.10](https://github.com/scanoss/scanoss.js/compare/v0.2.8...v0.2.10) (2022-01-11)
15
+ ### [0.2.14](https://github.com/scanoss/scanoss.js/compare/v0.2.10...v0.2.14) (2022-02-09)
16
+ ### [0.2.16](https://github.com/scanoss/scanoss.js/compare/v0.2.14...v0.2.16) (2022-02-14)
17
+ ### [0.2.18](https://github.com/scanoss/scanoss.js/compare/v0.2.16...v0.2.18) (2022-02-23)
18
+ ### [0.3.0](https://github.com/scanoss/scanoss.js/compare/v0.2.18...v0.3.0) (2022-07-02)
19
+ ### [0.4.0-alpha.0](https://github.com/scanoss/scanoss.js/compare/v0.3.0...v0.4.0-alpha.0) (2022-08-19)
20
+ ### [0.4.0-beta](https://github.com/scanoss/scanoss.js/compare/v0.4.0-alpha.0...v0.4.0-beta) (2022-08-31)
21
+ ### [0.4.0](https://github.com/scanoss/scanoss.js/compare/v0.4.0-beta...v0.4.0) (2022-09-30)
22
+ ### [0.7.8](https://github.com/scanoss/scanoss.js/compare/v0.4.0...v0.7.8) (2023-01-25)
23
+ ### [0.8.0](https://github.com/scanoss/scanoss.js/compare/v0.7.8...v0.8.0) (2023-02-20)
24
+ ### [0.8.5](https://github.com/scanoss/scanoss.js/compare/v0.8.0...v0.8.5) (2023-03-17)
25
+ ### [0.8.6](https://github.com/scanoss/scanoss.js/compare/v0.8.5...v0.8.6) (2023-03-28)
26
+ ### [0.8.7](https://github.com/scanoss/scanoss.js/compare/v0.8.6...v0.8.7) (2023-04-12)
27
+ ### [0.8.8](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.8.8) (2023-04-16)
28
+ ### [0.9.0](https://github.com/scanoss/scanoss.js/compare/v0.8.7...v0.9.0) (2023-04-19)
29
+ ### [0.9.1](https://github.com/scanoss/scanoss.js/compare/v0.9.0...v0.9.1) (2023-05-18)
30
+ ### [0.9.2](https://github.com/scanoss/scanoss.js/compare/v0.9.1...v0.9.2) (2023-10-09)
31
+ ### [0.9.3](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.9.3) (2023-10-20)
32
+ ### [0.10.0](https://github.com/scanoss/scanoss.js/compare/v0.9.2...v0.10.0) (2023-11-22)
33
+ ### [0.10.1](https://github.com/scanoss/scanoss.js/compare/v0.10.0...v0.10.1) (2023-11-22)
34
+ ### [0.10.2](https://github.com/scanoss/scanoss.js/compare/v0.10.1...v0.10.2) (2023-12-19)
35
+ ### [0.10.3](https://github.com/scanoss/scanoss.js/compare/v0.10.2...v0.10.3) (2023-12-22)
36
+ ### [0.10.4](https://github.com/scanoss/scanoss.js/compare/v0.10.3...v0.10.4) (2023-12-28)
37
+ ### [0.10.5](https://github.com/scanoss/scanoss.js/compare/v0.10.4...v0.10.5) (2023-12-29)
38
+ ### [0.11.0](https://github.com/scanoss/scanoss.js/compare/v0.10.5...v0.11.0) (2024-01-04)
39
+ ### [0.11.1](https://github.com/scanoss/scanoss.js/compare/v0.11.0...v0.11.1) (2024-01-09)
40
+ ### [0.11.2](https://github.com/scanoss/scanoss.js/compare/v0.11.1...v0.11.2) (2024-01-09)
41
+ ### [0.11.3](https://github.com/scanoss/scanoss.js/compare/v0.11.2...v0.11.3) (2024-01-09)
42
+ ### [0.11.4](https://github.com/scanoss/scanoss.js/compare/v0.11.3...v0.11.4) (2024-04-02)
43
+ ### [0.11.5](https://github.com/scanoss/scanoss.js/compare/v0.11.4...v0.11.5) (2024-04-19)
44
+ ### [0.12.0](https://github.com/scanoss/scanoss.js/compare/v0.11.5...v0.12.0) (2024-05-06)
45
+ ### [0.12.2](https://github.com/scanoss/scanoss.js/compare/v0.12.0...v0.12.2) (2024-05-10)
46
+ ### [0.13.0](https://github.com/scanoss/scanoss.js/compare/v0.12.2...v0.13.0) (2024-05-13)
47
+ ### [0.13.1](https://github.com/scanoss/scanoss.js/compare/v0.13.0...v0.13.1) (2024-05-15)
48
+ ### [0.13.2](https://github.com/scanoss/scanoss.js/compare/v0.13.1...v0.13.2) (2024-05-20)
49
+ ### [0.14.0](https://github.com/scanoss/scanoss.js/compare/v0.13.2...v0.14.0) (2024-05-23)
50
+ ### [0.14.1](https://github.com/scanoss/scanoss.js/compare/v0.14.0...v0.14.1) (2024-06-05)
51
+ ### [0.15.0](https://github.com/scanoss/scanoss.js/compare/v0.14.1...v0.15.0) (2024-07-28)
52
+ ### [0.15.1](https://github.com/scanoss/scanoss.js/compare/v0.15.0...v0.15.1) (2024-08-27)
53
+ ### [0.15.2](https://github.com/scanoss/scanoss.js/compare/v0.15.1...v0.15.2) (2024-08-29)
54
+ ### [0.15.3](https://github.com/scanoss/scanoss.js/compare/v0.15.2...v0.15.3) (2024-11-24)
55
+ ### [0.15.4](https://github.com/scanoss/scanoss.js/compare/v0.15.3...v0.15.4) (2024-11-27)
56
+ ### [0.15.5](https://github.com/scanoss/scanoss.js/compare/v0.15.4...v0.15.5) (2024-12-30)
57
+ ### [0.15.6](https://github.com/scanoss/scanoss.js/compare/v0.15.5...v0.15.6) (2025-01-08)
58
+ ### [0.15.7](https://github.com/scanoss/scanoss.js/compare/v0.15.6...v0.15.7) (2025-03-05)
59
+ ### [0.16.0](https://github.com/scanoss/scanoss.js/compare/v0.15.7...v0.16.0) (2025-04-22)
package/LICENSE CHANGED
@@ -1,23 +1,23 @@
1
- /\* SPDX-License-Identifier: MIT
1
+ SPDX-License-Identifier: MIT
2
2
 
3
- - The MIT License (MIT)
4
- - Copyright © 2022 Scan Open Source Solutions SL - https://scanoss.com
5
- -
6
- - Permission is hereby granted, free of charge, to any person obtaining a copy
7
- - of this software and associated documentation files (the “Software”), to
8
- - deal in the Software \* without restriction, including without limitation
9
- - the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
- - and/or sell copies of the Software, and to permit persons to whom the
11
- - Software is furnished to do so, subject to the following conditions:
3
+ The MIT License (MIT)
12
4
 
13
- - The above copyright notice and this permission notice shall be included in
14
- - all copies or substantial portions of the Software.
5
+ Copyright © 2025 Scan Open Source Solutions SL - https://scanoss.com
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the “Software”), to
9
+ deal in the Software without restriction, including without limitation
10
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ and/or sell copies of the Software, and to permit persons to whom the
12
+ Software is furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ IN THE SOFTWARE.
15
23
 
16
- - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
- - IN THE SOFTWARE.
23
- \*/
package/README.md CHANGED
@@ -38,18 +38,30 @@ Commands:
38
38
  scan [options] <source> Scan a folder/file
39
39
  dep [options] <source> Scan for dependencies
40
40
  wfp [options] <source> Generates fingerprints for a folder/file
41
+ crypto [options] <source> Scan local cryptography
41
42
  help [command] display help for command
42
43
  ```
43
44
 
44
45
  ### Command `scan`
46
+ * **Quick Analysis**: For a fast and free analysis of your project, simply run:
47
+ `scanoss-js scan -o results.json <source-folder>`
45
48
 
46
- * For a quick and free analysis of your project, simply input: `scanoss-js scan -o results.json <source-folder>`
49
+ * **API Token Scanning**: Use your API token for enhanced scanning capabilities:
50
+ `scanoss-js scan -o results.json --key <your_token> --apiurl <your_apiurl> <source-folder>`
47
51
 
52
+ * **Dependency Detection**: Include dependency detection in your scan:
53
+ `scanoss-js scan -o results.json --dependencies <source-folder>`
48
54
 
49
- * Using an API Token for Scanning: `scanoss-js scan -o results.json --key <your_token> --apiurl <your_apiurl> <source-folder>`
55
+ * **Cryptography Detection**: Include cryptographic algorithm and library detection:
56
+ `scanoss-js scan results.json --cryptography --key <your_token>`
50
57
 
58
+ * You can also specify custom algorithm and library detection rules:
59
+ `scanoss-js scan results.json --cryptography --key <your_token> --algorithm-rules <path-to-algorithm-rules.json> --library-rules <path-to-library-rules.json>`
60
+ See examples of [algorithm rules](#example-algorithm-rules-file) and [library rules](#example-library-rules-file) files below.
61
+
62
+
63
+ > **Note**: Component cryptography scanning is only performed when a token is provided. Without a token, only local cryptography scanning is performed. Custom rules for algorithms and libraries are applied to local cryptography detection in either case.
51
64
 
52
- * Include Dependency detection in scanning: `scanoss-js scan -o results.json --dependencies <source-folder>`
53
65
 
54
66
  ### Command `wfp`
55
67
  * Generate Hashes without analysis: `scanoss-js wfp -o fingerprints.wfp <source-folder>`
@@ -75,6 +87,66 @@ The manifest files acknowledged during the scanning process are:
75
87
  * Gradle: build.gradle
76
88
 
77
89
 
90
+ ### Command `crypto`
91
+ * Focus exclusively on local cryptographic algorithm and library detection:
92
+ ```bash
93
+ scanoss-js crypto .
94
+ ```
95
+
96
+ Us can also specify custom cryptography algorithm detection rules and library detection rules:
97
+ ``` bash
98
+ scanoss-js crypto . --algorithm-rules <path-to-algorithm-rules.json> --library-rules <path-to-library-rules.json>
99
+ ```
100
+ See examples of [algorithm rules](#example-algorithm-rules-file) and [library rules](#example-library-rules-file) files below.
101
+
102
+ ### Example Algorithm Rules File
103
+
104
+ ```json
105
+ [
106
+ {
107
+ "algorithm": "md5",
108
+ "strength": "128",
109
+ "keywords": [
110
+ "md5_file",
111
+ "md5crypt",
112
+ "md5_block_data_order",
113
+ "ossl_md5_sha1_",
114
+ "MD5_Init"
115
+ ]
116
+ },
117
+ {
118
+ "algorithm": "crc32",
119
+ "strength": "32",
120
+ "keywords": [
121
+ "..."
122
+ ]
123
+ }
124
+ ]
125
+ ```
126
+
127
+ ### Example Library Rules File
128
+ ```json
129
+ [
130
+ {
131
+ "id": "library/webcrypto",
132
+ "name": "Web Cryptography API",
133
+ "description": "A JavaScript API for performing basic cryptographic operations in web applications.",
134
+ "keywords": [
135
+ "window.crypto.subtle",
136
+ "crypto.subtle.",
137
+ "crypto.getRandomValues",
138
+ "NodeWebCrypto",
139
+ "WebCryptoAPI"
140
+ ],
141
+ "url": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API",
142
+ "category": "library",
143
+ "purl": "pkg:generic/webcrypto",
144
+ "tags": [
145
+ "JavaScript"
146
+ ]
147
+ }
148
+ ]
149
+ ```
78
150
 
79
151
 
80
152
  ## SDK Usage
@@ -676,8 +676,8 @@
676
676
  <thead>
677
677
  <tr>
678
678
  <th>Component</th>
679
- <th>Version</th>
680
- <th>Cryptography</th>
679
+ <th>Type</th>
680
+ <th>Detected</th>
681
681
  </tr>
682
682
  </thead>
683
683
  <tbody>
@@ -697,7 +697,8 @@
697
697
  <thead>
698
698
  <tr>
699
699
  <th>File</th>
700
- <th>Cryptography</th>
700
+ <th>Type</th>
701
+ <th>Detected</th>
701
702
  </tr>
702
703
  </thead>
703
704
  <tbody>
@@ -708,6 +709,7 @@
708
709
  <tr>
709
710
  <td></td>
710
711
  <td></td>
712
+ <td></td>
711
713
  </tr>
712
714
  </template>
713
715
  </div>
@@ -1178,9 +1180,9 @@
1178
1180
 
1179
1181
  for (const crypto of cryptography.components) {
1180
1182
  const clon = template.content.cloneNode(true);
1181
- clon.querySelector('td:nth-child(1)').innerHTML = crypto.purl;
1182
- clon.querySelector('td:nth-child(2)').innerHTML = crypto.version;
1183
- clon.querySelector('td:nth-child(3)').innerHTML = crypto.algorithms.map(e => `${e.algorithm} (${e.strength})`).join(' - ');
1183
+ clon.querySelector('td:nth-child(1)').innerHTML = crypto.source;
1184
+ clon.querySelector('td:nth-child(2)').innerHTML = crypto.type;
1185
+ clon.querySelector('td:nth-child(3)').innerHTML = crypto.values.join(' - ');
1184
1186
  table.appendChild(clon);
1185
1187
  }
1186
1188
  }
@@ -1195,8 +1197,9 @@
1195
1197
 
1196
1198
  for (const crypto of cryptography.files) {
1197
1199
  const clon = template.content.cloneNode(true);
1198
- clon.querySelector('td:nth-child(1)').innerHTML = crypto.file;
1199
- clon.querySelector('td:nth-child(2)').innerHTML = crypto.algorithms.map(e => `${e.algorithm} (${e.strength})`).join(' - ');
1200
+ clon.querySelector('td:nth-child(1)').innerHTML = crypto.source;
1201
+ clon.querySelector('td:nth-child(2)').innerHTML = crypto.type;
1202
+ clon.querySelector('td:nth-child(3)').innerHTML = crypto.values.join(' - ');
1200
1203
  table.appendChild(clon);
1201
1204
  }
1202
1205
  }