hide sensitive keys
Hide sensitive keys from a string or from a json payload. It acceptes a string or a JSON payload.
var HideSenSitiveKeys = ;const hidesensitivekeys = sensitiveKeys: 'password''cardNumber';//-hiding keys and return new payload/string.var data = hidesensitivekeys;
constructor, You have to pass a list of sensitive keys in the constructor you are using in your project. It's optional.
HideSenSitiveKeys#hideSensitiveKeys = function(sensitiveKeys)
sensitiveKeysYou can pass sensitive keys later as well.
HideSenSitiveKeys#hideKey = function(key)
key, a single key can be set on run time.