authenticode
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Authenticode for Node.JS

Installation

# with npm 
npm install authenticode
 
# with yarn 
yarn add authenticode

What is this about

Authenticode is Microsoft’s code-signing mechanism which allows identifying the publisher of executables (binaries or Powershell scripts).

This module wraps the Powershell cmdlet Get-Authenticode to return information about signatures of executable files to Node.JS.

import { getAuthenticode, SignatureStatus } from 'authenticode'
 
async function isSigned(path: string): Promise<boolean> {
  const { Status } = await getAuthenticode(path)
  return Status === SignatureStatus.Valid
}

Package Sidebar

Install

npm i authenticode

Weekly Downloads

342

Version

1.0.2

License

ISC

Unpacked Size

22.5 kB

Total Files

14

Last publish

Collaborators

  • nvld