increased max delay, fixed first run bug

This commit is contained in:
Kevin F 2021-08-09 00:06:39 +00:00
parent 6143b6b10e
commit beb07cacfa
3 changed files with 8 additions and 4 deletions

View File

@ -4,7 +4,7 @@ Did you know that websites can identify you based on the way you type?
There are spy libraries that can determine how long keys are held down and the time between keys. This is apparently good enough for spying that it can be used as a form of biometric authentication, by companies like Keytrac and TypingDNA. According to TypingDNA, their software has been used for test proctoring, and in banking apps.
This addon was created to skew the key press timing by limiting the speed of presses. The speed is changed randomly on each page load, with a max of 75ms.
This addon was created to skew the key press timing by limiting the speed of presses. The speed is changed randomly on each page load, with a max of 200ms.
It uses a less than ideal thread locking solution, as simply buffering text does not stop event listeners from spies.

View File

@ -19,7 +19,7 @@
const defaultHosts = "<all_urls>";
let appCode = function (){
const maxValue = 75
const maxValue = 100
let mainKeyboardPrivacy = function(){
@ -28,7 +28,7 @@ let appCode = function (){
while (true){
window.crypto.getRandomValues(buf);
if (buf[0] < maxValue){
if (buf[0] <= maxValue){
break
}
buf = new Uint8Array(1);
@ -70,6 +70,10 @@ let appCode = function (){
}, 100)
}
function shouldRunKeyboardPrivacy(value){
if (typeof value.keyboardprivacywhitelist !== undefined){
mainKeyboardPrivacy()
return
}
let vals = value.keyboardprivacywhitelist.split(',')
for (i = 0; i < vals.length; i++){
if (vals[i] === document.location.hostname || vals[i] === 'www.' + document.location.hostname){

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Private Keyboard",
"version": "1.1",
"version": "1.2",
"description": "Protect against keyboard biometrics",