Would like to implement this instead of showing error:
publicstaticencrypt=async(key: Key,passphrase: string)=>{if(key.type==='openpgp'){returnawaitOpenPGPKey.encryptKey(key,passphrase);}else{thrownewError(`KeyUtil.encrypt does not support key type ${key.type}`);}}The forge library we use likely has a method for this.
Would like to implement this instead of showing error:
The forge library we use likely has a method for this.