pad-nopadding.js 630 B

12345678910111213141516171819202122232425262728
  1. ;(function (root, factory, undef) {
  2. if (typeof exports === "object") {
  3. // CommonJS
  4. module.exports = exports = factory(require("./core"), require("./cipher-core"));
  5. } else if (typeof define === "function" && define.amd) {
  6. // AMD
  7. define(["./core", "./cipher-core"], factory);
  8. } else {
  9. // Global (browser)
  10. factory(root.CryptoJS);
  11. }
  12. }(this, function (CryptoJS) {
  13. /**
  14. * A noop padding strategy.
  15. */
  16. CryptoJS.pad.NoPadding = {
  17. pad: function () {
  18. },
  19. unpad: function () {
  20. }
  21. };
  22. return CryptoJS.pad.NoPadding;
  23. }));