mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-05-11 16:30:31 +00:00
10 lines
274 B
JavaScript
10 lines
274 B
JavaScript
'use strict';
|
|
|
|
const { encrypt, decrypt } = require('../crypto/encryptDecrypt');
|
|
|
|
|
|
module.exports = ({ passphrase, iv, algorithm = 'aes-256-cbc' }) => ({
|
|
encrypt: data => encrypt(data, algorithm, passphrase, iv),
|
|
decrypt: data => decrypt(data, algorithm, passphrase),
|
|
});
|