New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"hash" transformer or "hash" tera filter #181
Comments
Hello! Yes, of course, feel free to open the PR. |
With pleasure! Would you prefer it as tera function or transformer? I have both by now. |
Let's start with the function. |
cant push a branch to this repo @evgeniy-r |
Push to your fork and create a PR from your fork, please. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello and thank you for this tool. It works pretty neat. <3
My goal is to dump anonymized version of sensitive data in such a way that the value can be verified, given the original value. It is a common use case in our place to hmac(secret, value) or just sha(salt + value) to hide the field in a dump or log a pseudoanonymized value.
Generating random values works in many places, but we need either a
hash
transformer or a tera filter capable for generating such hashes, that are1 => 1
associations.I went ahead and implemented a
sha256
transformer and then looked for tera filters to do the same for comparison. (But this is not working as simply as the transformer Trait)I would like to open a PR and get some review done. What do you think?
The text was updated successfully, but these errors were encountered: