@ka-libs/crypto 1.3.2 → 1.3.3

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Zero\-dependency cross\-platform RSA \+ AES hybrid encryption utility for Node\.js \& Browser, fully compatible with PHP RSA\-OAEP\-SHA1\.**
6
6
 
7
- **GitHub:**[https://github\.com/Cirnotsuki/ka\-crypto](https://github.com/Cirnotsuki/@ka-libs/crypto)
7
+ **GitHub:**[https://github\.com/Cirnotsuki/ka\-crypto](https://github.com/Cirnotsuki/ka-crypto)
8
8
 
9
9
  Built on native Web Crypto / Node\.js Crypto API, no third\-party dependencies\. Lightweight and standard\-compliant\.
10
10
 
@@ -88,10 +88,10 @@ Support independent use of single encryption and decryption algorithm, flexible
88
88
  import { aesEncrypt, aesDecrypt } from '@ka-libs/crypto';
89
89
 
90
90
  // AES encryption
91
- const aesResult = aesEncrypt(plainData);
91
+ const { data, payload } = await aesEncrypt('any type of data');
92
92
 
93
93
  // AES decryption
94
- const originText = aesDecrypt(cipherText, payload);
94
+ const originData = aesDecrypt(cipherText, payload);
95
95
 
96
96
  ```
97
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ka-libs/crypto",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Cross-environment crypto utility for Node.js & Browser, implement RSA-AES hybrid encryption based on native Web Crypto / Node.js crypto without third-party dependencies.",
5
5
  "scripts": {
6
6
  "build:js": "rollup -c",