@synotech/utils
Version:
a collection of utilities for internal use
12 lines (11 loc) • 475 B
TypeScript
/**
* This function returns a public key string with the header and footer
* @module publicKeySetString
* @param {string} key - a public key string without the header and footer
* @return {string} {string} a public key string with the header and footer
* @example
*
* publicKeySetString('MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA') // returns -----BEGIN PUBLIC KEY----- ...
*
*/
export declare const publicKeySetString: (key: string | any) => string;