title |
---|
System ID generator |
This tool uses the cryptographically-secure pseudorandom number generator (CSPRNG) exposed by the Web Crypto API implementation of your web browser to generate a random system identifier. This ID is never sent to or received from a server. In fact, you can use this page even if you are not connected to any network.
The system identifiers generated by this tool can be used with PackSquash by putting them in the PACKSQUASH_SYSTEM_ID
environment variable. Please read the relevant documentation for details.
JavaScript is needed for this tool.
<style> #generate_id { color: #fff; padding: 0.5em; background: #646464; transition: background-color 0.25s; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } #generate_id:focus, #generate_id:hover { cursor: pointer; background: #565656; transition: background-color 0.25s; } #copy_id { float: right; font-size: 14px; padding: 10px; background: #646464; transition: background-color 0.25s; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } #copy_id:focus, #copy_id:hover { cursor: pointer; background: #444444; transition: background-color 0.25s; } #copy_id img { box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none; -o-box-shadow: none; -ms-box-shadow: none; } .hide_no_js { display: none; } </style>
Generate system ID
<script src="{{ '/assets/js/system_id_generator.js' | relative_url }}"></script>In case you are curious, the JavaScript code that generates the underlying UUID is as follows, and was adapted from this StackOverflow answer:
function uuidv4() {
var crypto = window.crypto || window.msCrypto;
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, function(c) {
return (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16);
});
}