Skip to content

Commit

Permalink
inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhwadekar committed Sep 23, 2021
0 parents commit 1c4b90b
Show file tree
Hide file tree
Showing 79 changed files with 60,603 additions and 0 deletions.
Empty file added app/__init__.py
Empty file.
Binary file added app/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/forms.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/hashgen.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added app/__pycache__/views.cpython-39.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions app/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions app/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app'
8 changes: 8 additions & 0 deletions app/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django import forms



class Get_str_form(forms.Form):
hash_str = forms.CharField(widget=forms.Textarea(attrs={"class":"form-control"}),max_length=250)


25 changes: 25 additions & 0 deletions app/hashgen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import hashlib


class Hash_Genrator:

def __init__(self,str_input):
self.hash_str = str_input
def md5(self):
return hashlib.md5(self.hash_str.encode('utf-8')).hexdigest()
def sha1(self):
return hashlib.sha1(self.hash_str.encode('utf-8')).hexdigest()
def sha224(self):
return hashlib.sha224(self.hash_str.encode('utf-8')).hexdigest()
def sha256(self):
return hashlib.sha256(self.hash_str.encode('utf-8')).hexdigest()
def sha384(self):
return hashlib.sha384(self.hash_str.encode('utf-8')).hexdigest()
def sha512(self):
return hashlib.sha512(self.hash_str.encode('utf-8')).hexdigest()
def blake2b(self):
return hashlib.blake2b(self.hash_str.encode('utf-8')).hexdigest()
def blake2s(self):
return hashlib.blake2s(self.hash_str.encode('utf-8')).hexdigest()


Empty file added app/migrations/__init__.py
Empty file.
Binary file added app/migrations/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
Loading

0 comments on commit 1c4b90b

Please sign in to comment.