Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/iron

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/iron - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

14

iron/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc