crypto-js_mode-ecb.js 1.4 KB

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