forked from shreyaspande2003/Aes-Visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
56 lines (42 loc) · 1.17 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const express = require('express');
const bodyParser = require("body-parser");
let ejs = require('ejs');
const app=express();
app.set('view engine','ejs');
app.use(bodyParser.urlencoded({extended:true}));
app.use(express.static("public"));
app.get("/",function(req,res){
res.render("home");
});
app.get("/roundxor",function(req,res){
res.render("roundxor");
});
app.get("/shift_rows",function(req,res){
res.render("shift_rows");
});
app.get("/mix_column",function(req,res){
res.render("MxCol");
});
app.get("/EncSbox",function(req,res){
res.render("EncSbox");
});
app.get("/keyround",function(req,res){
res.render("keyround");
});
app.get("/key",function(req,res){
res.render("key");
});
app.get("/keyallxor",function(req,res){
res.render("keyallxor");
});
app.get("/encrypt",function(req,res){
res.render("encrypt");
});
app.get("/keysbox",function(req,res){
res.render("keysbox");
});
app.post("/index",function(req,res){
});
app.listen(process.env.PORT || 3000, function(){
console.log("Express server listening on port %d in %s mode", this.address().port, app.settings.env);
});