Fingerprintjs 2:オープンソース設備の指紋採取器

2896 ワード

http://www.freebuf.com/sectool/105353.html
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fingerprintjs2/1.5.1/fingerprint2.min.js">script>

<script>

    new Fingerprint2().get(function(result, components){
        alert(result);
        console.log(result); //a hash, representing your device fingerprint
        console.log(components); // an array of FP components
    });

script>
使い方
    
1
var fingerprint = new Fingerprint().get();
       Canvas FingerPrinting,     :
1
var fingerprint = new Fingerprint({canvas: true}).get();
               ,      :
1
var fingerprint = new Fingerprint({screen_resolution: true}).get();
          
1
2
var my_hasher = new function(value, seed){ return value.length % seed; };
var fingerprint = new Fingerprint({hasher: my_hasher}).get();
        :
1
2
var my_hasher = new function(value, seed){ return value.length % seed; };
var fingerprint = new Fingerprint(my_hasher).get();