<script type="text/javascript" src="https://veslocker.com/pub/VESlocker.js"></script>
<script type="text/javascript">
// Instantiate VESlocker
var myVESlocker = VESlocker({apiUrl: 'https://veslocker.com/api/VESlocker.php'});
// Store a Value, protected by a PIN
myVESlocker.store(entry_name, pin, value).then(function() {
// Success
}).catch(function(e) {
// Error
});
// Fetch a Stored Value
// After a few incorrect PIN attempts the server will start throttling
// On a successful PIN attempt the value is automatically re-deposited
// with a new entry id and seed
myVESlocker.fetch(entry_name, pin).then(function(value) {
// Success, value is passed
}).catch(function(e) {
// Error
});
</script>