@pulkitsinha007/hybrid-crypto-js 1.4.1 → 1.4.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.
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/crypto.js +1 -1
- package/src/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -121,13 +121,13 @@ Provides a Crypto Key by taking custom a base string key as the input.
|
|
|
121
121
|
- **Parameter**:
|
|
122
122
|
- `inputKey`: `string` - Base key string supposed to be used for encoding.
|
|
123
123
|
- `options`: `Object` - Optional Configuration.
|
|
124
|
-
- `options.extractable`: `Boolean
|
|
124
|
+
- `options.extractable`: `Boolean` - `Default: false` - Whether the key can be exported.
|
|
125
125
|
- **Returns**: `Promise<CryptoKey>`
|
|
126
126
|
|
|
127
127
|
```javascript
|
|
128
128
|
import { getCustomSymmetricKey } from '@pulkitsinha007/hybrid-crypto-js';
|
|
129
129
|
|
|
130
|
-
const data = await getCustomSymmetricKey(inputKey);
|
|
130
|
+
const data = await getCustomSymmetricKey(inputKey, { extractable: true });
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
---
|
package/package.json
CHANGED
package/src/crypto.js
CHANGED
|
@@ -246,7 +246,7 @@ export async function decryptAsymmetric(encryptedData, privateKey) {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
|
-
* Provides a Crypto Key by taking custom
|
|
249
|
+
* Provides a Crypto Key by taking a custom base string as the input
|
|
250
250
|
* @param {string} inputKey - Base key string supposed to be used for encoding
|
|
251
251
|
* @param {Object} [options] - Optional configuration.
|
|
252
252
|
* @param {boolean} [options.extractable=false] - Whether the key can be exported.
|
package/src/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export function encryptAsymmetric(data: string | object, publicKey: string): Pro
|
|
|
110
110
|
export function decryptAsymmetric<T = any>(encryptedData: string, privateKey: string): Promise<T>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Provides a Crypto Key by taking custom
|
|
113
|
+
* Provides a Crypto Key by taking a custom base string as the input
|
|
114
114
|
* @param {string} inputKey - Base key string supposed to be used for encoding
|
|
115
115
|
* @param {Object} [options] - Optional configuration.
|
|
116
116
|
* @param {boolean} [options.extractable=false] - Whether the key can be exported.
|