Skip to content

Function: isValidSshPublicKey()

ts
function isValidSshPublicKey(value): boolean;

Whether value is one OpenSSH public-key line: a supported algorithm, a base64 blob that names the same algorithm, and at most one comment word.

Parameters

ParameterType
valuestring

Returns

boolean