mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 09:47:22 +01:00
sha384 yes yes
This commit is contained in:
parent
801c4aa12f
commit
330ef078a6
1 changed files with 10 additions and 1 deletions
11
server.js
11
server.js
|
@ -34,7 +34,15 @@ const templateDir = path.resolve(`${process.cwd()}${path.sep}html`);
|
||||||
var express = require("express");
|
var express = require("express");
|
||||||
var useragent = require("express-useragent");
|
var useragent = require("express-useragent");
|
||||||
|
|
||||||
var app = express();
|
|
||||||
|
// hash
|
||||||
|
var sha512 = require('js-sha512').sha512;
|
||||||
|
var sha384 = require('js-sha512').sha384;
|
||||||
|
|
||||||
|
var sha512_256 = require('js-sha512').sha512_256;
|
||||||
|
var sha512_224 = require('js-sha512').sha512_224;
|
||||||
|
|
||||||
|
var app = express();
|
||||||
app.engine("html", require("ejs").renderFile);
|
app.engine("html", require("ejs").renderFile);
|
||||||
app.use(express.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
app.use(express.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
||||||
app.use(useragent.express());
|
app.use(useragent.express());
|
||||||
|
@ -186,6 +194,7 @@ app.get("/watch", async function (req, res) {
|
||||||
date: moment(k.Video.uploadDate).format("LL"),
|
date: moment(k.Video.uploadDate).format("LL"),
|
||||||
e: e,
|
e: e,
|
||||||
k: k,
|
k: k,
|
||||||
|
sha384:sha384,
|
||||||
tj: tj,
|
tj: tj,
|
||||||
r: r,
|
r: r,
|
||||||
f: f,
|
f: f,
|
||||||
|
|
Loading…
Reference in a new issue