Diffuse text in a Textbox




3,553 visits, 5,656 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

If you have a input textbox in your application, and you dont want people around you to see it, then you can use this technique!


This technique DOES NOT encrypt the text in anyway, so this is NOT a secure way to handle sensitive information! This technique only diffuses the visible input box while keeping the orginal text inside the application for later use.

Here is a preview of how it can look like:

The basic idea of this technique, is when the text is changed inside the textbox, I store the text in a global variable and I change the text inside the textbox into a diffused text (in this example I use '*' as diffusion). So by doing it this way, I still have the orginal text inside the application, so I can use it later on, but what the user sees is only the diffused text.

Next I will break down the technique to show how it is done!


  • Order by
Want to leave a comment? Login or Register an account!