Skip to content

Add hashing function #225

Closed
Closed
@mcgodes

Description

@mcgodes

Would love to have a hash function available to me through the std library. Something like a UUID, md5, sha1, etc...

Something like:

local myObject = {
  key: "val",
  hello: "world",
};

local myObjectHash = std.md5(std.toString(myObject))

Don't think I want to write this as a function in jsonnet, as its been done elsewhere a number of times and I'm concerned about performance issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions