Content-Length: 209861 | pFad | http://github.com/jq-rs/mles-webproxy/commit/5f6e84d930a6acb8582fc65203b2a9372a6858ad

07 Handle length properly. · jq-rs/mles-webproxy@5f6e84d · GitHub
Skip to content

Commit

Permalink
Handle length properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jq-rs committed Jun 14, 2022
1 parent 269f352 commit 5f6e84d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion static/js/mlestalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,13 @@ function askChannelNew() {
}
else {
let channel = $('#input_channel').val().trim();
let bfchannel = atob(channel);
let len;

if(channel.length > 16)
len = 16;
else
len = channel.length;
let bfchannel = channel.substring(0,len);
let sipkey = SipHash.string16_to_key(bfchannel);
let atoken = SipHash.hash_hex(sipkey, bfchannel);
atoken = atoken + bfchannel;
Expand Down

0 comments on commit 5f6e84d

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jq-rs/mles-webproxy/commit/5f6e84d930a6acb8582fc65203b2a9372a6858ad

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy