Open PeterTF656 opened 2 years ago
You need to cast it to RSAPrivateKey
. To do that you need to add a direct dependency to pointycastle.
import 'package:pointycastle/asymmetric/api.dart';
private = RSAKeyParser().parse(key_string) as RSAPrivateKey
A direct function like RSAKeyParser().parsePrivateKey()
would've been a nice addition @leocavalcante
Is anyone working on that?