PHP 8.2.30
Preview: encryp.js Size: 383 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/flutterwave-node-v3/services/charge/encryp.js

var forge = require("node-forge");
function encrypt(key, text) {
  var cipher = forge.cipher.createCipher(
    "3DES-ECB",
    forge.util.createBuffer(key)
  );
  cipher.start({
    iv: ""
  });
  cipher.update(forge.util.createBuffer(text, "utf-8"));
  cipher.finish();
  var encrypted = cipher.output;
  return forge.util.encode64(encrypted.getBytes());
}

module.exports = encrypt

Directory Contents

Dirs: 0 × Files: 13

Name Size Perms Modified Actions
383 B lrw-r--r-- 2026-02-21 00:53:36
Edit Download
424 B lrw-r--r-- 2026-02-21 00:53:40
Edit Download
426 B lrw-r--r-- 2026-02-21 00:53:44
Edit Download
436 B lrw-r--r-- 2026-02-21 00:53:48
Edit Download
625 B lrw-r--r-- 2026-02-21 00:53:58
Edit Download
434 B lrw-r--r-- 2026-02-21 00:54:04
Edit Download
435 B lrw-r--r-- 2026-02-21 00:54:04
Edit Download
428 B lrw-r--r-- 2026-02-21 00:54:06
Edit Download
410 B lrw-r--r-- 2026-02-21 00:54:08
Edit Download
433 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
413 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
403 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
1.79 KB lrw-r--r-- 2026-02-21 00:54:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).