Show More
Commit Description:
force log out when password change
Commit Description:
force log out when password change
References:
File last commit:
Show/Diff file:
Action:
node_modules/crypto-js/mode-ecb.js
| 39 lines
| 893 B
| application/javascript
| JavascriptLexer
|
r789 | ;(function (root, factory, undef) { | ||
if (typeof exports === "object") { | |||
// CommonJS | |||
module.exports = exports = factory(require("./core"), require("./cipher-core")); | |||
} | |||
else if (typeof define === "function" && define.amd) { | |||
// AMD | |||
define(["./core", "./cipher-core"], factory); | |||
} | |||
else { | |||
// Global (browser) | |||
factory(root.CryptoJS); | |||
} | |||
}(this, function (CryptoJS) { | |||
/** | |||
* Electronic Codebook block mode. | |||
*/ | |||
CryptoJS.mode.ECB = (function () { | |||
var ECB = CryptoJS.lib.BlockCipherMode.extend(); | |||
ECB.Encryptor = ECB.extend({ | |||
processBlock: function (words, offset) { | |||
this._cipher.encryptBlock(words, offset); | |||
} | |||
}); | |||
ECB.Decryptor = ECB.extend({ | |||
processBlock: function (words, offset) { | |||
this._cipher.decryptBlock(words, offset); | |||
} | |||
}); | |||
return ECB; | |||
}()); | |||
return CryptoJS.mode.ECB; | |||
})); |