realrolfje / anonimatron

Anonimatron. Providing GDPR compliance since 2010.
https://realrolfje.github.io/anonimatron/
MIT License
98 stars 47 forks source link

BCrypt Anonymizer #183

Open thekevinbrown opened 1 year ago

thekevinbrown commented 1 year ago

Is your feature request related to a problem? Please describe. My database has passwords that are salted and hashed with BCrypt. Currently I'm using the random characters anonymization, but when developers look at the anonymized database, they think we're using a different hashing mechanism because they see hexadecimal.

Describe the solution you'd like If a BCRYPT anonymizer existed, it could output strings like: $2<a/b/x/y>$[cost]$[22 base64 characters][31 base64 characters]

Describe alternatives you've considered I could configure the characters in the current anonymizers to use the full base64 set, but that still wouldn't look like a BCrypt hash to the developers.

Additional context I'd be happy to PR this back in if there's interest!

realrolfje commented 1 year ago

Interesting idea! I'd be happy to merge a pull request with BCrypt anonymizer if fits nicely into the other anonymizers.