JavaScript Public-Key-Pins calculator