CJohnston079 / obfuscator

0 stars 0 forks source link

Add `mask` obfuscation method #34

Closed CJohnston079 closed 4 months ago

CJohnston079 commented 4 months ago

Issue

Masking is the process of obscuring a field by replacing all characters with a single token. It is commonly used for sensitive information such as credit card numbers and passwords.

Proposed resolution

Add a mask obfuscation method to obfuscator. mask will be called by obfuscate_fields in the obfuscate_field helper function. It will need to be passed the value of the field it is masking, which can be done by adding the _val key to the options argument if the obfuscation method is set to "mask".

CJohnston079 commented 4 months ago

Resolved in 4eb13eb360c26d9728a4094ced608a47ec47da02 with proposed resolution.