Skip to content
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

Provide hash function transformer/option #45

Open
alexisvisco opened this issue Apr 9, 2022 · 1 comment
Open

Provide hash function transformer/option #45

alexisvisco opened this issue Apr 9, 2022 · 1 comment

Comments

@alexisvisco
Copy link

alexisvisco commented Apr 9, 2022

I think it will be a good idea to provide same input same output in order to preserve consistency across a database.

You could imagine having a parameter :

- name: email
  transformer_name: email
  hash: true

With that parameter and that input [email protected] this will produce something like ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f@gmail.com with a sha512 hash function (using md5 will be faster but less secure)

@alexisvisco alexisvisco changed the title Provide hah function transformer Provide hash function transformer Apr 9, 2022
@alexisvisco alexisvisco changed the title Provide hash function transformer Provide hash function transformer/option Apr 9, 2022
@evoxmusic
Copy link
Contributor

Hi, good suggestion. I think it can even be a new type of Email Transformer. HashEmailTransformer. Feel free to open a PR if you want :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants