cipherlib 0.0.14
cipherlib: ^0.0.14 copied to clipboard
Implementations of cryptographic algorithms for encryption and decryption in Dart.
We analyzed this package 3 days ago, and awarded it 100 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
1018 out of 1215 API elements (83.8 %) have documentation comments.
Some symbols that are missing documentation: cipherlib.AEADCipher.AEADCipher.new, cipherlib.AEADCipherSink.AEADCipherSink.new, cipherlib.AESInCBCModeDecrypt.AESInCBCModeDecrypt.new, cipherlib.AESInCBCModeDecryptSink.AESInCBCModeDecryptSink.new, cipherlib.AESInCBCModeEncrypt.AESInCBCModeEncrypt.new.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 73 issues. Showing the first 2:
ERROR: The method 'randomBytes' isn't defined for the type 'AESInCBCMode'.
lib/src/algorithms/aes/cbc.dart:300:12
╷
300 │ iv ??= randomBytes(16);
│ ^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/algorithms/aes/cbc.dart
ERROR: The property 'length' can't be unconditionally accessed because the receiver can be 'null'.
lib/src/algorithms/aes/cbc.dart:301:12
╷
301 │ if (iv.length < 16) {
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/algorithms/aes/cbc.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
hashlib |
^1.20.3 |
1.23.0 | 2.2.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
hashlib_codecs |
- | 2.6.0 | 3.0.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^1.20.3` on hashlib does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions hashlib to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.3, Dart 3.10.4.
Check the analysis log for details.