paint-brush
How To Code To Prevent Sensitive Data Exposureby@oursky
338 reads
338 reads

How To Code To Prevent Sensitive Data Exposure

by OurskyJune 26th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When a data field contains some sensitive value, it should be encapsulated within the below data class to achieve data obfuscation by default. Since the "masked" method is overridden, where “masked” is always returned, its actual value can’t be printed out unless explicitly requested. In cases where a developer really has to obtain a sensitive data field, they can do so by calling the function "getSensitive()" The result should be:Explicit Request on Sensitive Data. It’s still possible that the sensitive data value is shown on the UI.
featured image - How To Code To Prevent Sensitive Data Exposure
Oursky HackerNoon profile picture
Oursky

Oursky

@oursky

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Buzzsumo
Zephyrnet
Learnrepo
Scien