Commit 04c6cc08 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent abbb0878
......@@ -290,6 +290,10 @@ function parse(url) {
domain: tls_domain}
}
function is_hex(str) {
return /^[0-9a-f]+$/.test(str)
}
function parseQuery(queryString) {
var query = {};
var pairs = queryString.split('&');
......
......@@ -3,7 +3,6 @@ let shell=require('shell-exec')
tesT()
async function tesT()
{
let d=await shell('head -c 16 /dev/urandom | xxd -ps')
d=d.stdout.replace('\n','')
is_hex
console.log(d)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment