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".
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 toobfuscator
.mask
will be called byobfuscate_fields
in theobfuscate_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 theoptions
argument if the obfuscation method is set to"mask"
.