Skip to content

Add optional List<int> param to Hash.digest for easier one-liner #3396

Closed
@sethladd

Description

@sethladd

Suggesting adding an optional List<int> param to Hash.digest() for the more simple one-liner cases.

Instead of:

var digest = sha256.update("message".charCodes()).digest();

It would be nicer to have:

var digest = sha256.digest("message".charCodes());

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-pkgUsed for miscellaneous pkg/ packages not associated with specific area- teams.closed-obsoleteClosed as the reported issue is no longer relevanttype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions