parseKeyFromFileSync<T extends RSAAsymmetricKey> function
Implementation
T parseKeyFromFileSync<T extends RSAAsymmetricKey>(String filename) {
final file = File(filename);
final key = file.readAsStringSync();
final parser = RSAKeyParser();
return parser.parse(key) as T;
}