forked from fanruan/fineui
Browse Source
* commit '999e5d794fa8487d29fc737af509ab7e35dc89f6': 补充单元测试 KERNEL-2840 增加一个aes解密方法master
fay
5 years ago
2 changed files with 41 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||||||
|
/* |
||||||
|
* @Author: fay |
||||||
|
* @Date: 2020-03-02 16:50:24 |
||||||
|
* @LastEditor: fay |
||||||
|
* @LastEditTime: 2020-03-02 16:56:43 |
||||||
|
*/ |
||||||
|
describe("aesDecrypt", function () { |
||||||
|
|
||||||
|
/** |
||||||
|
* test_author_fay |
||||||
|
*/ |
||||||
|
it("aesEncrypt", function () { |
||||||
|
var text = "test"; |
||||||
|
|
||||||
|
expect(BI.aesEncrypt(text, "0123456789ABCDEF")).to.eql("0No4i/uz2cfoo6zQMHaL1A=="); |
||||||
|
}); |
||||||
|
|
||||||
|
/** |
||||||
|
* test_author_fay |
||||||
|
*/ |
||||||
|
it("aesDecrypt", function () { |
||||||
|
var text = "0No4i/uz2cfoo6zQMHaL1A=="; |
||||||
|
|
||||||
|
expect(BI.aesDecrypt(text, "0123456789ABCDEF")).to.eql("test"); |
||||||
|
}); |
||||||
|
}); |
Loading…
Reference in new issue