authenticate against bytes in and out with sqlcounter