crypto-js_mode-ecb.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. require_cipher_core
  3. } from "./chunk-MIVSMGMR.js";
  4. import {
  5. require_core
  6. } from "./chunk-4NTX3REN.js";
  7. import {
  8. __commonJS
  9. } from "./chunk-2LSFTFF7.js";
  10. // node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ecb.js
  11. var require_mode_ecb = __commonJS({
  12. "node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ecb.js"(exports, module) {
  13. (function(root, factory, undef) {
  14. if (typeof exports === "object") {
  15. module.exports = exports = factory(require_core(), require_cipher_core());
  16. } else if (typeof define === "function" && define.amd) {
  17. define(["./core", "./cipher-core"], factory);
  18. } else {
  19. factory(root.CryptoJS);
  20. }
  21. })(exports, function(CryptoJS) {
  22. CryptoJS.mode.ECB = function() {
  23. var ECB = CryptoJS.lib.BlockCipherMode.extend();
  24. ECB.Encryptor = ECB.extend({
  25. processBlock: function(words, offset) {
  26. this._cipher.encryptBlock(words, offset);
  27. }
  28. });
  29. ECB.Decryptor = ECB.extend({
  30. processBlock: function(words, offset) {
  31. this._cipher.decryptBlock(words, offset);
  32. }
  33. });
  34. return ECB;
  35. }();
  36. return CryptoJS.mode.ECB;
  37. });
  38. }
  39. });
  40. export default require_mode_ecb();
  41. //# sourceMappingURL=crypto-js_mode-ecb.js.map