I hereby claim:
- I am deiu on github.
- I am deiu (https://keybase.io/deiu) on keybase.
- I have a public key whose fingerprint is E131 FAB4 EF64 A8AF 7A65 586C F708 8195 C4AE 512D
To claim this, I am signing this object:
import 'package:steel_crypt/steel_crypt.dart'; | |
import 'dart:convert'; | |
void main() async { | |
final passHash = PassCrypt('SHA-256/HMAC/PBKDF2'); | |
final ivsalt = CryptKey().genDart(16); | |
final derivationPassword = 'foobar'; | |
final derivedHash = passHash.hashPass(ivsalt, derivationPassword); | |
// prepare the key to be used by AesCrypt | |
final derivedBytes = base64Decode(derivedHash); |
did:muport:QmPoZWgtvv8NQAkmfz6vBCrGQqb2nuBJgcrVLDb4Gqyz2e |
Verifying my Blockstack ID is secured with the address 1JrhP8a5KrSmS7uCreg4JVaR7R7Qn7nFqG https://explorer.blockstack.org/address/1JrhP8a5KrSmS7uCreg4JVaR7R7Qn7nFqG |
/** | |
* Check if an (origin) URL is local based on the RFC 1918 list of reserved | |
* addresses. It accepts http(s) and ws(s) schemas as well as port numbers. | |
* | |
* localhost | |
* 127.0.0.0 – 127.255.255.255 | |
* 10.0.0.0 – 10.255.255.255 | |
* 172.16.0.0 – 172.31.255.255 | |
* 192.168.0.0 – 192.168.255.255 | |
* + extra zero config range on IEEE 802 networks: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8uEYNRF4530cKXkwkXl/AJv0XL+ydqmk0fvrs+5oAZNTSByvotjsYga9fj38Fc+nuKxTaUMnUzxZ5qUQxWJGB0cQ86/PoKU7jpuOf1w8NnZJE6CjdAthcZXnexLneGvbobUuFa7tOjQ+EtC6WpmeintPK7q+CuazUrAKfLHUjDVC5xDlZMfieXfpgFDW5GNOmkIhk6TBLrjqBnCPYXiaXLS+5Nf1Gba16noinNpGnL0++zmrBPUQ9E1WlYpkkbywoyOEERCvRjYaeUrrmswAJABAsaK1UB1Vf0p/EbkDpMGB8SNKyKxFgi23aYFndWH8unMAAndqwsqO+hM692slv deiu@nayu |
I hereby claim:
To claim this, I am signing this object:
A running example of the code from:
Small refactorings made to original code:
// Map URL query items to their values | |
// e.g. ?referrer=https... -> queryVals[referrer] returns 'https...' | |
var queryVals = (function (a) { | |
if (a === '') return {} | |
var b = {} | |
for (var i = 0; i < a.length; ++i) { | |
var p = a[i].split('=', 2) | |
if (p.length === 1) { | |
b[p[0]] = '' | |
} else { |
Verifying that +deiu is my openname (Bitcoin username). https://onename.com/deiu |
<!-- MIT License --> | |
<html> | |
<head> | |
<script> | |
function generateKey(alg, scope) { | |
return new Promise(function(resolve) { | |
var genkey = crypto.subtle.generateKey(alg, true, scope) | |
genkey.then(function (pair) { | |
resolve(pair) | |
}) |