To use this function add it to the class library file named PluginSSHService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginSSHService.ts
Description: Orchestrator Function to get the Default SSH Key Size Per Algorithm
Public Function: getDefaultKeySizePerAlgorithm
publicgetDefaultKeySizePerAlgorithm(strAlgorithm:"RSA"|"DSA"|"ECDSA"):number{
if (strAlgorithm==='RSA'){
return2048;
}elseif (strAlgorithm==='DSA'){
return1024;
}elseif (strAlgorithm==='ECDSA'){
return521;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
