UNPKG

pure-js-sftp

Version:

A pure JavaScript SFTP client with revolutionary RSA-SHA2 compatibility fixes. Zero native dependencies, built on ssh2-streams with 100% SSH key support.

18 lines 647 B
/** * Pure JavaScript SSH Key Parser using sshpk only * Eliminates all Node.js crypto dependencies for maximum VSCode/webpack compatibility */ interface ParsedKey { type: string; comment: string; sign(data: Buffer, algorithm?: string): Buffer; verify(data: Buffer, signature: Buffer, algorithm?: string): boolean; isPrivateKey(): boolean; getPrivatePEM(): string; getPublicPEM(): string; getPublicSSH(): Buffer; equals(other: ParsedKey): boolean; } export declare function parseKey(keyData: string | Buffer, passphrase?: string): ParsedKey | null; export {}; //# sourceMappingURL=enhanced-key-parser.d.ts.map