summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md11
-rw-r--r--base.css5
-rw-r--r--base.js7
-rw-r--r--index.html30
4 files changed, 28 insertions, 25 deletions
diff --git a/README.md b/README.md
index 970ff26..9bf99c3 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-Hashualize
-==========
+Polyhash
+========
-Hashualize is an aesthetic and helpful way to visualize hash values. Remembering hashed fingerprints is very hard, and having a quick way to visually grasp hased values is of great importance.
+Polyhash is an aesthetic and helpful way to visualize hash values. Remembering hashed fingerprints is very hard, and having a quick way to visually grasp hased values is of great importance.
Requirements
------------
@@ -13,8 +13,5 @@ Requirements
Implementation
--------------
-Any arbitrary array of characters is accepted as an input. Input is hashed by the SHA1 hash algorithm, producing a 160-bit hashed value, which will then be processed by the output visualization method. The visualization method operates as follows:
+Any arbitrary array of characters is accepted as an input. Input is hashed by the SHA1 hash algorithm, producing a 160-bit hashed value, which will then be processed by the output visualization method, which is a work in progresss.
-
-
-
diff --git a/base.css b/base.css
index 4343a2d..635eeb4 100644
--- a/base.css
+++ b/base.css
@@ -2,6 +2,11 @@ body {
margin: 30px 25px 40px 25px;
}
+.big {
+ font-size: 8em;
+ line-height: 1.2em;
+}
+
.mat {
margin: 20px;
}
diff --git a/base.js b/base.js
index faaf5c7..a1112fa 100644
--- a/base.js
+++ b/base.js
@@ -7,9 +7,8 @@ gen = function(s, c) {
v.push(bt);
}
- console.log(v);
- var W = 50;
- var H = 50;
+ var W = 80;
+ var H = 80;
var r = Raphael('c1', W, H);
var hv = v[4] / 256;
@@ -41,7 +40,7 @@ randStr = function(n){
$(document).ready(function() {
- for (var i=0; i<100; i++) {
+ for (var i=0; i<10; i++) {
gen(randStr(8));
}
});
diff --git a/index.html b/index.html
index 3ceaad1..d8dea18 100644
--- a/index.html
+++ b/index.html
@@ -8,21 +8,23 @@
<script src="base.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link rel="stylesheet" type="text/css" href="base.css">
- <title>Hash Visualization</title>
+ <title>Polyhash</title>
</head>
<body>
- <h1>Hash Visualization</h1>
- <hr>
- <input id="val">
- <input type="button" class="btn btn-primary" value="Generate">
- <hr>
- <div id="c1" class="canvas"></div>
- <div id="c2" class="canvas"></div>
- <div id="c3" class="canvas"></div>
- <div id="c4" class="canvas"></div>
- <div id="c5" class="canvas"></div>
- <div id="c6" class="canvas"></div>
- <div id="c7" class="canvas"></div>
- <div id="c8" class="canvas"></div>
+ <div class="container">
+ <h1 class="big">Polyhash</h1>
+ <div id="c1" class="canvas"></div>
+
+ <hr>
+
+ <h2>About</h2>
+ <p>Polyhash is an easy way to generate aesthetic, easily identifiable, icons for hashed values</p>
+
+ <h2>Usage</h2>
+ <ol>
+ <li>Include the script on the page: <code>&lt;script src="http://github.com/bla/bla"&gt;</code></li>
+ <li>Add the class</li>
+ </ol>
+ </div>
</body>
</html>