/** * Copyright (c) 2025 Ofri Peretz * Licensed under the MIT License. Use of this source code is governed by the * MIT license that can be found in the LICENSE file. */ /** * ESLint Rule: no-deprecated-cipher-method * Detects use of deprecated crypto.createCipher/createDecipher methods * CWE-327: These methods don't use IV, making encryption deterministic * * @see https://nodejs.org/api/crypto.html#cryptocreatecipheralgorithm-password-options */ import type { TSESLint } from '@interlace/eslint-devkit'; type MessageIds = 'deprecatedCipherMethod' | 'useCipheriv'; export interface Options { /** Allow deprecated methods in test files. Default: false */ allowInTests?: boolean; } type RuleOptions = [Options?]; export declare const noDeprecatedCipherMethod: TSESLint.RuleModule & { name: string; }; export type { Options as NoDeprecatedCipherMethodOptions };