Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fancy logo and Visual Identity atempt #27

Open
wants to merge 28 commits into
base: hacktober
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3f2daf1
Caclulating hash time
Djuki Oct 11, 2017
bd902c4
Merge pull request #6 from Djuki/hash-time-calculate
TheAdnan Oct 11, 2017
8b19949
Update README.md
TheAdnan Oct 11, 2017
8d60433
fonts
TheAdnan Oct 11, 2017
e7baaef
Merge branch 'master' of https://github.com/TheAdnan/hashr
TheAdnan Oct 11, 2017
85ace7f
Update index.php
vaani98 Oct 11, 2017
418c825
Update index.php
vaani98 Oct 11, 2017
d8f987e
Merge pull request #7 from vaani98/master
TheAdnan Oct 11, 2017
e8ece7b
css edits
TheAdnan Oct 11, 2017
e3656b8
algo function fix
TheAdnan Oct 11, 2017
1169f42
remove input validation js function and replace with HTML input valid…
DugTrio91 Oct 11, 2017
bbb8196
Merge pull request #11 from DugTrio91/feature/fix-client-side-form-va…
TheAdnan Oct 11, 2017
b6c1357
Update README.md
TheAdnan Oct 11, 2017
c74765a
Dumped css to external stylesheet
Oct 15, 2017
3cd61dc
Added classes and changed font sizes
Oct 15, 2017
7ef4d29
Improved submit button
Oct 15, 2017
0dcf64a
Merge pull request #21 from amarbeslija/master
TheAdnan Oct 15, 2017
76bf4d6
Nesto izmijenjeno
er-rend Oct 18, 2017
cee5c9e
Merge pull request #23 from er-rend/master
TheAdnan Oct 18, 2017
c13e4d0
Adding new logo to readme
stefanobg Oct 5, 2018
72bd4d2
Changing logo file on Readme
stefanobg Oct 5, 2018
6c150cc
Changing from svg to png
stefanobg Oct 5, 2018
3b4a202
Adding colors
stefanobg Oct 5, 2018
bbf0d05
Changing readme
stefanobg Oct 5, 2018
706cfe5
Adding new Interface, Gifs, Logo and more
stefanobg Oct 5, 2018
9747889
Changing size of gif and logo
stefanobg Oct 5, 2018
3551ac6
Adjustments on readme
stefanobg Oct 5, 2018
26e4054
Changing size of styleguide
stefanobg Oct 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# hashr
### _Password hash generator_
<p align="center">
<img src="https://raw.githubusercontent.com/stefanobg/hashr/master/assets/Hashr-Dark-slogan.png">
</p>

List of all PHP hashing algorithms ([hash_algos() function](http://php.net/manual/en/function.hash-algos.php)) and their result for an input string.
# 🔒 Hashr! [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
Password hash generator, easy as pie.
<br/><br/>

## 💻 Online Example
The app is deployed on heroku, take a look by clicking [here](https://hashr-php.herokuapp.com/)
<br/><br/>

## 🔥 New Interface and Visual Identity
> Contribution by [Stéfano Girardelli](https://stefanobg.com)
🎨 **Logo, Colors and Favicon**
<p float="left">
<img src="https://raw.githubusercontent.com/stefanobg/hashr/master/assets/Colors-Logo.png">
</p>
<br/><br/>

📱 **Interface**
<p float="left">
<img src="https://raw.githubusercontent.com/stefanobg/hashr/master/assets/Interaction.gif">
</p>
<br/><br/>
Binary file added assets/Colors-Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Hashr-Dark-slogan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Hashr-Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/Hashr-Dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Hashr-Light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/Hashr-Light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interaction.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Generated (Hover).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Generated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Home (Hover).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Home (Type - Hover).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Home (Type).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Interface/Home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion function.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?php
$hashes = array();
$hashTime = array();
if(isset($_POST['submit']) && !empty($_POST['input'])){
foreach (hash_algos() as $algo) {
array_push($hashes, hash($algo, $_POST['input']));

$start = microtime(true);
$hash = hash($algo, $_POST['input']);
$timeElapsed = microtime(true) - $start;
$hashTime[$algo] = $timeElapsed;
$hashes[$algo] = $hash;
}
}
?>
29 changes: 9 additions & 20 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
<?php
<?php
require_once("function.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>Hashr</title>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<style type="text/css">
html{
font-family: Orbitron;
}
.hashes {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 10px;
grid-auto-columns: minmax(20%, 30%);
}
</style>
<link href="main.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito|Orbitron" rel="stylesheet">
</head>
<body>
<form method="post">
<form name ="hashform" method="post" onsubmit="return validateform()">
<label>Input string: </label>
<input type="text" name="input">
<input type="submit" name="submit" value="Hash!">
<input type="text" name="input" required oninvalid="this.setCustomValidity('You can\'t leave the input string blank!')">
<input type="submit" class="submit" name="submit" value="Hash!">
</form>
<br>
<div class="hashes">
<?php
foreach (hash_algos() as $i => $algo) { ?>
<?php
foreach (hash_algos() as $algo) { ?>
<div class="hash_algo">
<p class="algo"><b><?= $algo; ?></b></p>
<p>Hash: <span style="font-family: Nunito"><?= $hashes[$i]; ?></span></p>
<p class="hash">Hash: <span style="font-family: Nunito"><?= $hashes[$algo]; ?></span></p>
<small>Execution time: <span class="exec-time" style="font-family: Nunito"><?= number_format($hashTime[$algo] * 1000000000, 0); ?> nanoseconds</span></small>
</div>
<?php }
?>
</div>
</body>
</html>


65 changes: 65 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
html{
font-family: Orbitron;
background: black;
color: #1be71b;
}
.hashes {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 12px;
}

.hash_algo{
border: 0.6px solid rgb(44, 140, 49);
padding: 10px;
}

.algo{
font-size: 19px;
}

.hash{
font-size: 15px;
}

.exec-time{
font-weight: bold;
}

.submit{
background-color: green;
border: 2px solid green;
color: #fff;
width: 100px;
margin-left: 20px;
font-family: Orbitron;
-webkit-transition: all 0.5s ease-in;
-moz-transition: all 0.5s ease-in;
-ms-transition: all 0.5s ease-in;
-o-transition: all 0.5s ease-in;
transition: all 0.5s ease-in;

}

.submit:hover{
cursor: pointer;
font-size: 15px;
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
-o-transform: scale(1.1);
-ms-transform: scale(1.1);
transform: scale(1.1);
-webkit-transition: all 0.5s ease-in;
-moz-transition: all 0.5s ease-in;
-ms-transition: all 0.5s ease-in;
-o-transition: all 0.5s ease-in;
transition: all 0.5s ease-in;
}

small{
font-size: 12px;
}

p{
margin: 10px 0;
}