AbdelbakiBoukerche / rsa_encrypt

rsa encrypt package
MIT License
17 stars 16 forks source link

parsePublicKeyFromPem: type 'ASN1Object' is not a subtype of type 'ASN1Sequence' in type cast #16

Open asa08 opened 3 years ago

asa08 commented 3 years ago

I want to encrypt using the public key of the String I have.

I got an error with parsePublicKeyFromPem.

When the exception was thrown, this was the stack:

0 RsaKeyHelper.parsePublicKeyFromPem (package:rsa_encrypt/rsa_encrypt.dart:60:47)

1 HomeScreenContent.build._openNotification (package:app/garage/pages/home/MY_SCREEN.dart:43:32)

2 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:993:19)

3 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:1111:38)

4 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:183:24)


- flutter --version

Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9b2d32b605 (8 months ago) • 2021-01-22 14:36:39 -0800 Engine • revision 2f0af37152 Tools • Dart 2.10.5



Do you know the solution?
Thank you.