mirror of
https://github.com/ION606/ion-stop-enc.git
synced 2026-05-14 20:06:54 +00:00
added example salt/iv api
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs, { read } from 'fs';
|
||||
import express from 'express';
|
||||
import cors from 'cors';
|
||||
import { encrypt, decrypt } from './enc.js';
|
||||
import { encrypt, decrypt, encryptInitEnc } from './enc.js';
|
||||
import bodyParser from 'body-parser';
|
||||
import multer from 'multer';
|
||||
import stream from 'stream';
|
||||
@@ -49,4 +49,6 @@ app.post('/decrypt', upload.single('file'), (req, res) => {
|
||||
});
|
||||
|
||||
|
||||
app.post('/getsaltandiv', (_, res) => res.send(encryptInitEnc("I'M ENCRYPTED!", 'password')))
|
||||
|
||||
app.listen(PORT, () => console.log(`app listening on port ${PORT}`));
|
||||
Reference in New Issue
Block a user