I'm looking for a font which displays a or a * for every character, in the same way. A totally unreadable font.
Despite my efforts I couldn't find one on the internet. Is there a system font like this ? Or do you know one ?
I'm looking for a font which displays a or a * for every character, in the same way. A totally unreadable font.
Despite my efforts I couldn't find one on the internet. Is there a system font like this ? Or do you know one ?
The Google font Flow Block should come closest to your requirements, however spaces are still spaces
As I doubt that such a font exists, an alternative could be to do your own select
. Using the data-*
attribute provided by HTML5, you can attach any additional information to any element. So, you can develop a select that would display the character you want (e.g. *
) but set data-something
to the correct value. Then, when the user press on a button or so, you can call a function to iterate through your personal selects and read the data-something
from them to compute the data the user entered.
Here is a minimal example of such a code : https://jsfiddle.net/w0za8ut6/2/
Make one. Just fire up FontForge, the authoritative open source font editor of choice, and make a font with your desired glyph pasted into every letter box that you need supported, or you can craft a cmap 13 font with a single glyph but defined as used for the entire code range, like Adobe's "Blank" font.
Generate your font, pick "web open font" format to make it a WOFF2 instead of a system font like ttf/otf, and done. You can now load it with an @font-face
rule.
That said, what you want to do sounds like a weird hack that doesn't actually make passwords any more or less secure, but that's your decision.
The font part at least is almost trivially easy.