extractPGPs: Extract any PGP keys from an input string

Description Usage Arguments Value

Description

Given an input string, extract any PGP keys (any string starting with —–BEGIN PGP PUBLIC KEY BLOCK—– and ending with —–END PGP PUBLIC KEY BLOCK). Note that trailing dashes are not currently removed.

Usage

1
extractPGPs(inputString)

Arguments

inputString

string to search for PGP keys

Value

1. 'outputString' input string removing PGP keys 2. 'retrievedPGPs' vector of extracted PGP keys (header, footer, whitespace etc. removed). Will have more than one element if there is more than 1 unique PGP key in the input string


xhtai/heisenbrgr documentation built on June 8, 2019, 9:30 a.m.