@types/node-forge
Advanced tools
+10
-14
@@ -281,6 +281,2 @@ /// <reference types="node" /> | ||
| interface MDSigner { | ||
| sign(md: md.MessageDigest): Bytes; | ||
| } | ||
| namespace rsa { | ||
@@ -480,6 +476,6 @@ type EncryptionScheme = "RSAES-PKCS1-V1_5" | "RSA-OAEP" | "RAW" | "NONE" | null; | ||
| * | ||
| * @param signer the signer used to sign this csr | ||
| * @param key the private key to sign with. | ||
| * @param md the message digest object to use (defaults to forge.md.sha1). | ||
| */ | ||
| sign(signer: MDSigner, md?: md.MessageDigest): void; | ||
| sign(key: pki.rsa.PrivateKey, md?: md.MessageDigest): void; | ||
| /** | ||
@@ -576,6 +572,6 @@ * Attempts verify the signature on the passed certificate using this | ||
| * | ||
| * @param signer the signer used to sign this csr | ||
| * @param key the private key to sign with. | ||
| * @param md the message digest object to use (defaults to forge.md.sha1). | ||
| */ | ||
| sign(signer: MDSigner, md?: md.MessageDigest): void; | ||
| sign(key: pki.rsa.PrivateKey, md?: md.MessageDigest): void; | ||
| /** | ||
@@ -774,3 +770,3 @@ * Attempts verify the signature on this csr using this | ||
| */ | ||
| function privateKeyToOpenSSH(privateKey: pki.PrivateKey, passphrase?: string): string; | ||
| function privateKeyToOpenSSH(privateKey: pki.rsa.PrivateKey, passphrase?: string): string; | ||
@@ -780,3 +776,3 @@ /** | ||
| */ | ||
| function privateKeyToPutty(privateKey: pki.PrivateKey, passphrase?: string, comment?: string): string; | ||
| function privateKeyToPutty(privateKey: pki.rsa.PrivateKey, passphrase?: string, comment?: string): string; | ||
@@ -786,3 +782,3 @@ /** | ||
| */ | ||
| function publicKeyToOpenSSH(publicKey: pki.PublicKey, comment?: string): string | pki.PEM; | ||
| function publicKeyToOpenSSH(publicKey: pki.rsa.PublicKey, comment?: string): string | pki.PEM; | ||
@@ -793,3 +789,3 @@ /** | ||
| function getPublicKeyFingerprint( | ||
| publicKey: pki.PublicKey, | ||
| publicKey: pki.rsa.PublicKey, | ||
| options?: FingerprintOptions, | ||
@@ -980,3 +976,3 @@ ): util.ByteStringBuffer | Hex | string; | ||
| attributes: any; | ||
| key?: pki.PrivateKey | undefined; | ||
| key?: pki.rsa.PrivateKey | undefined; | ||
| cert?: pki.Certificate | undefined; | ||
@@ -1005,3 +1001,3 @@ asn1: asn1.Asn1; | ||
| function toPkcs12Asn1( | ||
| key: pki.PrivateKey | null, | ||
| key: pki.rsa.PrivateKey | null, | ||
| cert: pki.Certificate | pki.Certificate[], | ||
@@ -1008,0 +1004,0 @@ password: string | null, |
| { | ||
| "name": "@types/node-forge", | ||
| "version": "1.3.13", | ||
| "version": "1.3.14", | ||
| "description": "TypeScript definitions for node-forge", | ||
@@ -106,4 +106,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-forge", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "56b42ecfae2f4c537aaaa1a3ab130728f8103591da86c8109c434a334859b1fe", | ||
| "typeScriptVersion": "5.1" | ||
| "typesPublisherContentHash": "3850fefa5749c4445206076acefb67e5fa8dc76a45e03c7a668914788eb1d9af", | ||
| "typeScriptVersion": "5.2" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Fri, 11 Jul 2025 22:02:30 GMT | ||
| * Last updated: Wed, 20 Aug 2025 18:41:19 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
63534
-0.1%1412
-0.21%