Verschieden Settings hinzugefügt (inkomplett)
This commit is contained in:
@@ -15,7 +15,6 @@ export const encrypt = (text, iv) => {
|
||||
};
|
||||
|
||||
export const decrypt = (text, iv) => {
|
||||
console.log(text, secretKey, iv);
|
||||
const decipher = crypto.createDecipheriv(algorithm, Buffer.from(secretKey, 'utf-8'), iv);
|
||||
let decrypted = decipher.update(text, 'hex', 'utf8');
|
||||
decrypted += decipher.final('utf8');
|
||||
|
||||
Reference in New Issue
Block a user