@lindorm/aes 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/classes/AesKit.d.ts +2 -2
- package/dist/classes/AesKit.d.ts.map +1 -1
- package/dist/classes/AesKit.js.map +1 -1
- package/dist/types/{aes-cipher-class.d.ts → aes-kit.d.ts} +2 -2
- package/dist/types/aes-kit.d.ts.map +1 -0
- package/dist/types/{aes-cipher-class.js → aes-kit.js} +1 -1
- package/dist/types/aes-kit.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/types/aes-cipher-class.d.ts.map +0 -1
- package/dist/types/aes-cipher-class.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.2](https://github.com/lindorm-io/monorepo/compare/@lindorm/aes@0.1.1...@lindorm/aes@0.1.2) (2024-05-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lindorm/aes
|
|
9
|
+
|
|
6
10
|
## [0.1.1](https://github.com/lindorm-io/monorepo/compare/@lindorm/aes@0.1.0...@lindorm/aes@0.1.1) (2024-05-11)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/dist/classes/AesKit.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AesEncryptionData, AesKitOptions, DecryptAesDataOptions } from "../types";
|
|
2
2
|
export declare class AesKit {
|
|
3
3
|
private readonly encryption;
|
|
4
4
|
private readonly encryptionKeyAlgorithm;
|
|
5
5
|
private readonly format;
|
|
6
6
|
private readonly integrityHash;
|
|
7
7
|
private readonly kryptos;
|
|
8
|
-
constructor(options:
|
|
8
|
+
constructor(options: AesKitOptions);
|
|
9
9
|
encrypt(cipher: string, mode?: "cipher"): string;
|
|
10
10
|
encrypt(data: string, mode: "object"): AesEncryptionData;
|
|
11
11
|
decrypt(cipher: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AesKit.d.ts","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"AesKit.d.ts","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,aAAa,EAEb,qBAAqB,EAItB,MAAM,UAAU,CAAC;AASlB,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,OAAO,EAAE,aAAa;IAQlC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM;IAChD,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,iBAAiB;IA4BxD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAC/B,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG,MAAM;IAmB7D,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAQ7C,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;CAOlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AesKit.js","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":";;;AAAA,oCAAiD;AAEjD,sCAAqC;AAUrC,4DAKqC;AACrC,wDAA6E;AAE7E,MAAa,MAAM;IACA,UAAU,CAAa;IACvB,sBAAsB,CAAyB;IAC/C,MAAM,CAAe;IACrB,aAAa,CAAgB;IAC7B,OAAO,CAAU;IAElC,YAAmB,
|
|
1
|
+
{"version":3,"file":"AesKit.js","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":";;;AAAA,oCAAiD;AAEjD,sCAAqC;AAUrC,4DAKqC;AACrC,wDAA6E;AAE7E,MAAa,MAAM;IACA,UAAU,CAAa;IACvB,sBAAsB,CAAyB;IAC/C,MAAM,CAAe;IACrB,aAAa,CAAgB;IAC7B,OAAO,CAAU;IAElC,YAAmB,OAAsB;QACvC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,aAAa,CAAC;QACtD,IAAI,CAAC,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,IAAI,cAAc,CAAC;QAC/E,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC;QAC5C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAI,QAAQ,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;IAIM,OAAO,CAAC,GAAW,EAAE,OAA4B,QAAQ;QAC9D,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,QAAQ;gBACX,OAAO,IAAA,8BAAiB,EAAC;oBACvB,IAAI,EAAE,GAAG;oBACT,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;oBACnD,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,aAAa,EAAE,IAAI,CAAC,aAAa;oBACjC,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB,CAAC,CAAC;YAEL,KAAK,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Algorithm, IntegrityHash } from "./types";
|
|
3
|
-
export type
|
|
3
|
+
export type AesKitOptions = {
|
|
4
4
|
encryption?: Encryption;
|
|
5
5
|
encryptionKeyAlgorithm?: EncryptionKeyAlgorithm;
|
|
6
6
|
format?: BufferFormat;
|
|
7
7
|
integrityHash?: IntegrityHash;
|
|
8
8
|
kryptos: Kryptos;
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=aes-
|
|
10
|
+
//# sourceMappingURL=aes-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aes-kit.d.ts","sourceRoot":"","sources":["../../src/types/aes-kit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1F,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aes-kit.js","sourceRoot":"","sources":["../../src/types/aes-kit.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./aes-cipher"), exports);
|
|
18
|
-
__exportStar(require("./aes-cipher-class"), exports);
|
|
19
18
|
__exportStar(require("./aes-data"), exports);
|
|
20
19
|
__exportStar(require("./aes-encryption-data"), exports);
|
|
20
|
+
__exportStar(require("./aes-kit"), exports);
|
|
21
21
|
__exportStar(require("./types"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,wDAAsC;AACtC,4CAA0B;AAC1B,0CAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lindorm/aes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"author": "Jonn Nilsson",
|
|
6
6
|
"repository": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@lindorm/is": "^0.1.4",
|
|
31
31
|
"@lindorm/kryptos": "^0.2.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "a17ffe98c4fd9ef81d3b251f84fbff66ae133722"
|
|
34
34
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aes-cipher-class.d.ts","sourceRoot":"","sources":["../../src/types/aes-cipher-class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aes-cipher-class.js","sourceRoot":"","sources":["../../src/types/aes-cipher-class.ts"],"names":[],"mappings":""}
|