UNPKG

@octopusdeploy/step-packages-public-feed-encryption

Version:

A package that facilitates the generation of an encrypted signature for step package public feed. The encryption method follows the convention of [AWS Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html).

9 lines (8 loc) 491 B
/// <reference types="node" /> export declare type KeyValuePair = { key: string; value: string | undefined; }; export declare const createHash: (algorithm: string, message: string | Buffer) => string; export declare const createHmac: (algorithm: string, message: string, secret: string) => string; export declare const createSignature: (algorithm: string, secretKey: string, httpMethod: string, headers: KeyValuePair[], payloads: KeyValuePair[], requestTimestamp: string) => string;