Simple keystroke dynamics (KD) with jQuery

I want to develop a simple application for measuring residence time and flight time (see http://www.techrepublic.com/article/reduce-multi-factor-authentication-costs-with-behavioral-biometrics/6150761 ) in the text area / field . how can i use keypress () or keydown () up () methods to record these events?

+3
source share
3 answers

I do not understand why it was not worth it. Just because Javascript can be modified on the client side does not mean that an attacker can reproduce actual user input patterns.

(, , , ).

, , ( /).

+4

, , , Javascript, , javascript , Firebug.

, :

  • = keydown() keyup(). keydown() keyup() twell keydown().
  • : , , , , , (keyup()), (keydown()). keyup() , last_key_time, keydown() current_time - last_key_time
0

See an example here: http://jsfiddle.net/VDMPt/ source

But, as Andrea said, not worth it, since Javascript is the client side

var xTriggered = 0;
$('#target').keyup(function(event) {
  if (event.keyCode == '13') {
     event.preventDefault();
   }
   xTriggered++;
   var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
  $.print(msg, 'html');
  $.print(event);
});

$('#other').click(function() {
  $('#target').keyup();
});
0
source

Source: https://habr.com/ru/post/1792037/


All Articles