Skip to content

[fingerprint] Add converter for SHA-512 #34007

Closed
@mashhurs

Description

@mashhurs

Component(s)

pkg/ottl

Is your feature request related to a problem? Please describe.

A new sha-512 ottl function/converter transforms ingested data to a hash value.

This functionality is an extension to existing sha-1, sha-256 functions and there are use cases (storing password, verifying data) where users want stronger security (comparing to sha-256) with its larger hash value.

Describe the solution you'd like

Similar to sha256, crypto/sha512 will be utilized to calculate the hash value by rejecting nil/empty args with descriptive error message(s).
The API interface look like:

SHA512(attributes["device.name"])
SHA512("name")

Describe alternatives you've considered

Maybe attributeprocessor by specifying a hash param?!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions