calculate key fingerprint
calculate fingerprint in javascript