@types/iron
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -59,11 +59,11 @@ // Type definitions for iron 5.0 | ||
export interface Algorithms { | ||
'aes-128-ctr': { | ||
"aes-128-ctr": { | ||
keyBits: number; | ||
ivBits: number; | ||
}; | ||
'aes-256-cbc': { | ||
"aes-256-cbc": { | ||
keyBits: number; | ||
ivBits: number; | ||
}; | ||
'sha256': { | ||
"sha256": { | ||
keyBits: number; | ||
@@ -73,3 +73,3 @@ }; | ||
export interface GenerateKeyOptions extends Pick<SealOptionsSub, 'algorithm' | 'iterations' | 'minPasswordlength'> { | ||
export interface GenerateKeyOptions extends Pick<SealOptionsSub, "algorithm" | "iterations" | "minPasswordlength"> { | ||
saltBits?: number | undefined; | ||
@@ -97,3 +97,7 @@ salt?: string | undefined; | ||
export function generateKey(password: string, options: GenerateKeyOptions): Promise<Key>; | ||
export function encrypt(password: string, options: GenerateKeyOptions, data: string): Promise<{ data: Buffer, key: Key }>; | ||
export function encrypt( | ||
password: string, | ||
options: GenerateKeyOptions, | ||
data: string, | ||
): Promise<{ data: Buffer; key: Key }>; | ||
export function decrypt(password: string, options: GenerateKeyOptions, data: string): Promise<Buffer>; | ||
@@ -100,0 +104,0 @@ export function hmacWithPassword(password: string, options: GenerateKeyOptions, data: string): Promise<HMacResult>; |
{ | ||
"name": "@types/iron", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "TypeScript definitions for iron", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iron", | ||
}, | ||
"typesPublisherContentHash": "ed48037007c54ed8a9fce411e1de2e3632363fc7ce5a022501a33b64c0b85ef8", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "ba610ff0d26b1fda7f1e89eee08adf990148a7485bfd65fb925d90650be6a2ca", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 21:33:41 GMT | ||
* Last updated: Tue, 26 Sep 2023 14:36:22 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6142
94