sha256.convert(bytes).toString() centraliseren (12+ inline kopieen) #2076
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#2076
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Probleem
sha256.convert(bytes).toString()wordt inline herhaald in 12+ services, terwijllib/utils/content_hash.dartal eensha512Hexhelper biedt. Eensha256Hex/sha256HexOfTexthelper ontbreekt.Voorkomens
services/duplicate_service.dartservices/image_service.dartservices/web_asset_store.dartservices/evidence_hash_service.dartservices/asset_rights_scanner.dartservices/asset_rights_repository_scanner.dartservices/openkat/openkat_directory_scanner.dartservices/git/asset_pool.dartservices/import/models/source_image.dartservices/ociserve/ociserve_gateway.dartservices/privacy/dismissal_codec.dartservices/privacy/redaction_manifest_service.dartVoorstel
Voeg
sha256Hex(List<int> bytes)ensha256HexOfText(String text)toe inlib/utils/content_hash.dart(naast de bestaandesha512Hex). Vervang alle inline calls.Schatting
~15-20 regels verwijderbaar.
Labels
duplicate, enhancement