Last active
July 9, 2020 02:50
-
-
Save DigiMancer3D/b5319194d784c956cc3a286d74722f06 to your computer and use it in GitHub Desktop.
Build as random as I can hashes that still have some recgonizable points. This is mostly for fun.
This file contains 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
<meta name="viewport" content="width=device-width, initia-scale=0.5"></meta> | |
<style type="text/css"> | |
body{ | |
color:white;font-size:7vw;font-family: AppleGothic;word-wrap: break-word;}h3{font-size:11vw;javascript:allow; background-color:black; | |
} | |
a{ | |
Color: darkgreen; text-decoration: none; | |
} | |
@media screen and (max-width: 9.9in){ | |
body { margin-left:1.5%; margin-right:1.5%;} | |
.title {font-size: 8.34vw;} | |
.dropup-content { font-size: 3.5vw;} | |
.subtitle {font-size: 4.34vw;} | |
.chapter {font-size: 6.5vw; color:darkgreen; margin-left :1.5vw;} | |
.content {font-size: 5vw; color:white; margin-left:3%; margin-right:3%;} | |
.figure {font-size: 5.25vw; color:grey; margin-left:0.5%;/*margin-right:1%;*/} | |
.fdata {font-size: 4.25vw; margin-left:1.75%;} | |
} | |
@media screen and (min-width: 10in) { | |
body{ background-image:url("https://spee.ch/9/NNN-gif-2"); background-repeat: repeat;background-size:13vw; | |
} | |
.world { margin-left:10%; margin-right:10%; background-color:black;} | |
.title {font-size: 6.34vw;} | |
.dropup-content { font-size: 3.5vw;} | |
.subtitle {font-size: 3.03vw;} | |
.chapter {font-size: 5.25vw; color:darkgreen; margin-left: 2vw;} | |
.content {font-size: 4vw; color:white; margin-left:5%;margin-right:5%;} | |
.figure {font-size: 5vw; color:grey; margin-left:1%;/*margin-right:1.5%;*/} | |
.fdata {font-size:3vw; margin-left 1.5%} | |
} | |
</style> | |
<body style="background-color:black;" > | |
<div class="world" style="padding-left:2.2vw;padding-right:2.2vw;padding-top:4.5%;padding-bottom:4.5%;margin-top:1.5%;margin-bottom:1.5%;"> | |
<div name="header" min-width="99%" align="top:0" > | |
<div class="row"> | |
<h5 align ="center" style="margin-top:-2.5%;padding-top:-2.5%;margin-bottom:2.5%;"><b>Let's Hide <i>msgs</i> in <b> 99% Randomized Hash</b> strings. | |
<h6><sup style="color:silver;align:center;margin-top:-3%;padding-top:-3%;padding-bottom:3%;" >The non random aspect is the hash identifier. In this demo the id is <i><b>11#11</b></i> == <i>"<b>_#_[...]_#_</b>"</i>.</sup></b></h6></h5> | |
<legend style=" margin-top:-10%;padding-top:-10%;padding-bottom:10%;margin-bottom:10%;">This is an example of a new age diary.</legend> | |
<input id="data1" style="font-size:75%; margin-top:-10%;padding-top:-10%;padding-bottom:10%;margin-bottom:10%;" align="center" text-align="center" onfocus="this.value='', document.getElementById('SUM1').innerHTML = 'Click me for a phresh sum.', document.getElementById('out1').innerHTML='';" value="Fill this with your 'msg'" onfocus="clear.this" ></input> | |
</br> | |
<p id="SUM1" onclick="myFunction(); document.getElementById('out6').innerHTML = addt(out1.innerHTML);" style="background-color:black;color:green;margin-top:-8%;padding-top:-8%;marign-bottom:10%;font-size:75%;" align="center" >Click me for a phresh sum.</p> | |
<h6>Here's the Priv Key: <span id="out2" style="font-size:75%"></span></h6> | |
<h6>Signiture for this build: <span id="sign" style="font-size:75%"></span></h6> | |
<h6 style="color:orange;text-shadow:2% 2% 3% grey;">What was stored?<p id="out1"> </p></br> | |
<span id="out4" style="color:gold"></span></br><span id="out5" ></span></br><span id="out6" style="color:green"></span><hr></h6> | |
<p>Current Hashes</p> | |
<sub style="color:green;font-size:75%;">Block #</br> | |
<span id="block" display="hidden" style="font-size:50%"></span></sub> | |
<sup style="color:orange;font-size:75%;"><span id="psign" display="hidden" style="font-size:50%"></span></br><sub>signed w/Love<hr></sub></sup> | |
<p>Prev Hashes</p> | |
<span id="blockspot" style="font-size:50%"></span> | |
</div> | |
<script> | |
/* function bin2hex(s){ | |
// Converts the binary representation of data to hex | |
// | |
// version: 812.316 | |
// discuss at: http://phpjs.org/functions/bin2hex | |
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + bugfixed by: Onno Marsman | |
// + bugfixed by: Linuxworld | |
// * example 1: bin2hex('Kev'); | |
// * returns 1: '4b6576' | |
// * example 2: bin2hex(String.fromCharCode(0x00)); | |
// * returns 2: '00' | |
var v,i, f = 0, a = []; | |
s += ''; | |
f = s.length; | |
for (i = 0; i<f; i++) { | |
a[i] = s.charCodeAt(i).toString(16).replace(/^([\da-f])$/,"0$1"); | |
} | |
return a.join(''); | |
} | |
*/ | |
/*This is my attempt to build the ascending/descending-dependancies-tree hashing algorythm aka "369 hash" by 3D.*/ | |
/*function addt(hash) { | |
hash.value = reh; | |
var s1, s2, g=[]; | |
var g = reh.innerHTML.splice(s1, s2); | |
var | |
/* | |
var relu,dmg='',entr=[]; | |
hash +=''; | |
dmg = hash.length; | |
for (relu = 0; relu<dmg; relu++) { | |
entr[relu] = hash.charCodeAt(dmg); | |
} | |
return entr.join('</br>'); | |
} | |
//trying tyo go hex-2-ascii below this | |
/*returns Numbers*/ | |
/*function hex2a(x) { | |
var p,d=0,e=[]; | |
x +=''; | |
d = x.length; | |
for (p = 0; p<d; p++) { | |
e[p] = x.charCodeAt(p, 2); | |
} | |
return e.join(''); | |
} | |
/*returns nothing *//* | |
function hex2a(str1) | |
{ | |
var hexx = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hexx.length; n += 2) { | |
str += String.fromCharCode(parseInt(hexx.toString().substr(n, 2), 16)); | |
} | |
return str; | |
} | |
*/ | |
/*returns NaN*/ | |
/*function hex2a(x) { | |
var p,d=0,e=[]; | |
x +=''; | |
d = x.length; | |
for (p = 0; p<d; p++) { | |
e[p] = x.charCodeAt(d); | |
return e.join(''); | |
} | |
/* | |
function hex2a(str1) | |
{ | |
var hex = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hex.length; n += 2) { | |
str += String.fromCharCode(parseInt(hex.substr(n, 2), 16)); | |
} | |
return str; | |
} | |
console.log(hex2a(bin2hex)); | |
/* | |
function hex2a(hexx) | |
{ | |
var hex = hexx.toString(); | |
var str3 = ''; | |
var iy; | |
for(iy = 0; iy < hex.length; iy+=2) | |
{ | |
str3 += String.fromCharCode(parseInt(hex.substr(iy, 2), 16)); | |
} | |
return str3; | |
}/* | |
/* | |
function a2hex(str) | |
{ | |
document.write("<br>"); | |
var arr = []; | |
for (var i = 0, l = str.length; i < l; i ++) { | |
var hex = Number(str.charCodeAt(i)).toString(16); | |
arr.push(hex); | |
} | |
for(var i = 0; i < str.length; i++) | |
{ | |
document.write(arr[i] + " "); | |
} | |
document.writeln("<br>"); | |
//document.write(arr[0] + arr[1]) | |
return arr.join(''); | |
} | |
a2hex(h2h); //returns 32343630*/ | |
// $CVSHeader: _freebeer/www/lib/bin2hex.js,v 1.2 2004/03/07 17:51:35 ross Exp $ | |
// Copyright (c) 2002-2004, Ross Smith. All rights reserved. | |
// Licensed under the BSD or LGPL License. See license.txt for details. | |
/* | |
function myFun2() { | |
var x, xl, y, d, m, s, e=0, n=[], xy=[]; | |
x = document.getElementById('data1').value; | |
xl = x.length; | |
s = Math.random(m).innerHTML + Date.getTime; | |
(y=0,y<xl,y++) | |
for (d=x.split(n,(n+2)).toString(xy)); | |
Math.random(s).toString(z+z).substring(n, n^y, Date.getTime, m); | |
} | |
*/ | |
function myFunction() { | |
document.getElementById("SUM1").innerHTML = Math.random(document.getElementById('data1').value + Date.getTime).toString(36).substring(2+2, 3+2, Math.random().toString(36).substring(2, 99, document.getElementById('data1').value, "11#11")*Math.random().toString(36).substring(2, 999, Date.getTime), "crafted with love by 3D" ) + Math.random().toString(9).substring(2, 3, Math.random().toString(36).substring(2, 9999999, Date.getTime)) + Math.random(data1).toString(36).substring(2, Math.random().toString(9).substring(2, 999, document.getElementById('data1').innerHTML), Math.random(out1).toString(36).substring(2, 9999, Date.getTime)) + | |
Math.random().toString(36).substring(2, 999999, Date.getTime) + Math.random().toString(36).substring(2, Math.random().toString(9).substring(2, 999, document.getElementById('data1').value), Math.random().toString(36).substring(2, 9999, Date.getTime)) + Math.random().toString(9).substring(2, 3, Math.random().toString(36).substring(10, 99, Date.getTime)) + Math.random().toString(36).substring(2, 3, Math.random().toString(36).substring(10, 99, Date.getTime)).toString(); | |
document.getElementById("out1").innerHTML = data1.value; | |
document.getElementById("data1").value = "Fill this with your 'msg'"; | |
document.getElementById("out2").innerHTML = Math.random().toString(36).substring(2+2, 3+2, Math.random().toString(36).substring(2, 99, document.getElementById('data1').value, "11#11")*Math.random().toString(36).substring(2, 999, Date.getTime), "crafted with love by 3D" ) + Math.random().toString(9).substring(2, 3, Math.random().toString(36).substring(2, 9999999, Date.getTime), document.getElementById("out1").innerHTML) + Math.random().toString(36).substring(2, Math.random().toString(9).substring(2, 999, document.getElementById('block').innerHTML), Math.random().toString(36).substring(2, 9999, document.getElementById("block").innerHTML), document.getElementById("SUM1").innerHTML) + | |
Math.random().toString(36).substring(2, 999999, Date.getTime) + Math.random().toString(36).substring(2, Math.random().toString(9).substring(2, 999, document.getElementById('data1').value), Math.random().toString(36).substring(2, 9999, Date.getTime)) + Math.random().toString(9).substring(2, 3, Math.random().toString(36).substring(10, 99, Date.getTime)) + Math.random().toString(36).substring(2, 3, Math.random().toString(36).substring(10, 99, Date.getTime),document.getElementById("block").innerHTML).toString() + "11#11"; | |
var usrA = Math.random().toString(36).substring(2+2, 9999, SUM1.innerHTML + 11 /*this is usrA var a*/) + Date.getTime + Math.random().toString(36).substring(2+2, 9999999+99999999, Date.getTime, 10 /*this is usrA var b*/) + 20 /*this is usrA var c*/; | |
document.getElementById("sign").innerHTML = Math.random().toString(36).substring(2+2, 9999, SUM1.innerHTML + out2.innerHTML) + Math.random().toString(36).substring(2+2, 9999, SUM1.innerHTML) + SUM1.innerHTML.substring(3,9) + Math.random().toString(36).substring(2+2, 9999999+99999999, Date.getTime) + Math.random().toString(36).substring(2, 9999, out2.innerHTML + SUM1.innerHTML); | |
var signb = Math.random().toString(36).substring(2+2, 9999, SUM1.innerHTML + 00 /*this is signb var e*/) + Date.getTime + Math.random().toString(36).substring(2+2, 9999999+99999999, Date.getTime, 01 /*this is signb var f*/) + 02/*this is signb var h*/; | |
document.getElementById("psign").innerHTML = signb.substring(6,9) + Math.random().toString(36).substring(2,999, sign.innerHTML.substring(6,15) + signb) + Math.random().toString(36).substring(2,999, signb + SUM1.innerHTML) + signb.substring(3,6); | |
document.getElementById("block").innerHTML = SUM1.innerHTML + "</br>" + sign.innerHTML + "</br>" ; | |
document.getElementById("blockspot").innerHTML = "<br />" + SUM1.innerHTML + "</br>" + bin2hex(out1.innerHTML) + "</br>" + psign.innerHTML + "/<3" + "<br />" + blockspot.innerHTML; | |
} | |
</script> | |
<!--<a><script src="https://itty.bitty.site/lzma/lzma_worker-min.js; javascript:document.getElementById('block').innerHTML;"></script> | |
<script>a=document.querySelector('a');LZMA.compress(a.outterHTML,9,block.innerHTML,function(r){a.innerText=a.href='https://itty.bitty.site/#/?'+btoa(String.fromCharCode.apply(null,new Uint8Array(r)))})</script></a> | |
<!-- <a><script src="https://itty.bitty.site/lzma/lzma_worker-min.js"></script> | |
<script>a=document.querySelector('a');LZMA.compress(a.outerHTML,9,function(r){a.innerText=a.href='https://itty.bitty.site/#/?'+btoa(String.fromCharCode.apply(null,new Uint8Array(r)))})</script></a> | |
<button target="_blank" onclick="https://itty.bitty.site/#/'+Buffer.from(lzma.compress(block, 9)).toString('base64')">Save</button> | |
</br> | |
<script> | |
mySave() { | |
document.getElementById('block').innerHTML.tosubstring("'https://itty.bitty.site/#/'+Buffer.from(lzma.compress("Hello World", 9)).toString('base64')") | |
} | |
</script> | |
--> | |
<div align="center"> <p style="background-color:black;color:green;" ><sub><sup>Click & Hold for highlight to copy.<a href="http://3dthe.ninja" target="_top" ></sup></br><sub><sup>Сделано<b><i> 3D</b></i> 2018</sup></sub></a><hr><a href="https://codepen.io/digimancer3d/pen/Rvmwmv" target="_top" ><sub><sup >Click to view this repo on Codepen.</sup></sub></a></sub></p></div><hr> | |
</body > | |
<footer> | |
<div align="center" width="100%" style="font-size:3.34vw; background-color:black"><h4 style="color :Orange" >If you liked this build please consider donating cryptocurrency to the crafter by using the following crypto-addresses, thank you.</h4><sub>₿://31saqmrKAUdLr6Ta3CYzXsYpzqELsJ5etJ</br>Ł://LYDeUmzzyEqpugYjaavZYYM8yXpXJ1VrbR</br>Ð://D9F4zdgHE8Fb7mpWQ2BNFQVvC5ocJxWEjr</br>Ξ://0x38891a281fD0fc68eDFa434999F5eeA77b06589B</sub></br><hr></div> | |
</footer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment