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

FIX #1 Enhancement: Extending Project to Support Advanced Multimedia Steganography with AES and RSA Encryption, Multiple Formats, and GUI #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions AES-ENC-Key/note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RSA Encrypted AES key will be stored in this folder. Share the key text to receiver to decrypt.
DO NOT DELETE THIS FOLDER.
65 changes: 65 additions & 0 deletions Backup Files/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
from flask import Flask,render_template,request,flash
from encode import *
from decode import *

app=Flask(__name__)

app.config['SECRET_KEY'] = '12345'
@app.route('/')
def index():
return render_template('index.html')

@app.route('/decrypt')
def decrypt():
return render_template('decrypt.html')

@app.route('/encrypt')
def Analysis():
# innn name get from analysisForm.html
name="Vishal Mankotia"
n="Govindani"
print(name)
return render_template('./encrypt.html',name=name,n=n)

@app.route('/aboutus')
def About():
return render_template('aboutUs.html')

@app.route('/encode', methods=['POST','GET'])
def encode():
result = request.form.to_dict()
cover = result['cover']
to_hide1 = result['to_hide1']

file_type = result['file_type']
print(type(file_type))
# a=input("Enter the file type: ")
encode_method1=result['encode_method']
if(file_type=='5'):
to_hide2=result['to_hide2']
to_hide3=result['to_hide3']
to_hide4=result['to_hide4']
multi(cover,to_hide1,to_hide2,to_hide3,to_hide4,file_type,encode_method1)
else:
final(cover,to_hide1,file_type,encode_method1)
print(cover,to_hide1,file_type)

a=1

return render_template('decrypt.html',set=a)

@app.route('/decode', methods=['POST','GET'])
def decode():
result=request.form.to_dict()
to_decode=result["to_decode"]
decode_method=result["decode_method"]
print(to_decode,decode_method)

message=decrypt_file(to_decode,decode_method)


return render_template('done.html',message=message)



app.run(debug=True)
Loading