This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
with open("benchmark_control.easm", "w") as f: | |
print("PUSH1 251", file=f) | |
print("PUSH1 1", file=f) | |
for _ in range(10_000): # stay roughly within codesize limit, still large enough for benchmark | |
print("DUP2 MUL", file=f) | |
print("DUP1 DUP1 POP POP", file=f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns PBKDF2 derived key from supplied password. | |
* | |
* Stored key can subsequently be used to verify that a password matches the original password used | |
* to derive the key, using pbkdf2Verify(). | |
* | |
* @param {String} password - Password to be hashed using key derivation function. | |
* @param {Number} [iterations=1e6] - Number of iterations of HMAC function to apply. | |
* @returns {String} Derived key as base64 string. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "19A", | |
"color": "#462EB9", | |
"children": [ | |
{ | |
"name": "20A", | |
"color": "#4580CA", | |
"children": [ | |
{ | |
"name": "20B", |