amaurel / rsa_pkcs Goto Github PK
View Code? Open in Web Editor NEWRSA,PKCS#1,PKCS#8
License: Apache License 2.0
RSA,PKCS#1,PKCS#8
License: Apache License 2.0
PointyCastle has a new version 1.0.0-rc2, and i cannot use this package since the limit is PointyCastle's version 0.11.0.
Are you considering to update this package?
hello i am trying to parse a key in pkcs8 format and it doesnt work, i am getting error:
type 'ASN1OctetString' is not a subtype of type 'ASN1Integer' in type cast
there are no tests indicating that it should work but description says that it does.
Do you have any plans on supporting PKCS12 / PFX aswell?
Hi,
I get the following error when I try to use rsa_pkcs with dart2js:
Unsupported operation: Int64List not supported by dart2js.
Int64List is only used in this file: packages/asn1lib/asn1integer.dart
-----BEGIN CERTIFICATE-----
MIICizCCAfQCCQCY8tKaMc0BMjANBgkqhkiG9w0BAQUFADCBiTELMAkGA1UEBhMC
Tk8xEjAQBgNVBAgTCVRyb25kaGVpbTEQMA4GA1UEChMHVU5JTkVUVDEOMAwGA1UE
CxMFRmVpZGUxGTAXBgNVBAMTEG9wZW5pZHAuZmVpZGUubm8xKTAnBgkqhkiG9w0B
CQEWGmFuZHJlYXMuc29sYmVyZ0B1bmluZXR0Lm5vMB4XDTA4MDUwODA5MjI0OFoX
DTM1MDkyMzA5MjI0OFowgYkxCzAJBgNVBAYTAk5PMRIwEAYDVQQIEwlUcm9uZGhl
aW0xEDAOBgNVBAoTB1VOSU5FVFQxDjAMBgNVBAsTBUZlaWRlMRkwFwYDVQQDExBv
cGVuaWRwLmZlaWRlLm5vMSkwJwYJKoZIhvcNAQkBFhphbmRyZWFzLnNvbGJlcmdA
dW5pbmV0dC5ubzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAt8jLoqI1VTlx
AZ2axiDIThWcAOXdu8KkVUWaN/SooO9O0QQ7KRUjSGKN9JK65AFRDXQkWPAu4Hln
O4noYlFSLnYyDxI66LCr71x4lgFJjqLeAvB/GqBqFfIZ3YK/NrhnUqFwZu63nLrZ
jcUZxNaPjOOSRSDaXpv1kb5k3jOiSGECAwEAATANBgkqhkiG9w0BAQUFAAOBgQBQ
Yj4cAafWaYfjBU2zi1ElwStIaJ5nyp/s/8B8SAPK2T79McMyccP3wSW13LHkmM1j
wKe3ACFXBvqGQN0IbcH49hu0FKhYFM/GPDJcIHFBsiyMBXChpye9vBaTNEBCtU3K
jjyG0hRT2mAQ9h+bkPmOvlEo/aH0xR68Z9hw4PF13w==
-----END CERTIFICATE-----
final key = File('sample.pem').readAsStringSync();
final parser = RSAPKCSParser();
final puk = parser.parsePEM(key).public;
Error
dart:core List.[]
package:rsa_pkcs/src/parser.dart 77:52 RSAPKCSParser._pkcs8CertificatePrivateKey
package:rsa_pkcs/src/parser.dart 147:14 RSAPKCSParser._publicKey
package:rsa_pkcs/src/parser.dart 36:23 RSAPKCSParser.parsePEM
RangeError (index): Invalid value: Not in inclusive range 0..5: 6
I made a Pull Request #17 to fix this issue. Thanks.
Hi, Is it possible, or are there any plans for creating X.509 certificates?
Hi and thanks for the work. I'm using corsac_jwt which uses rsa_pkcs from parsing RSA public keys.
I cannot manage to parse keys (.RSAPKCSParser.parsePEM) got from https://www.googleapis.com/robot/v1/metadata/x509/[email protected] which are (I think) RSA keys but I could be wrong (doc https://firebase.google.com/docs/auth/admin/verify-id-tokens#verify_id_tokens_using_a_third-party_jwt_library). It fails finding the correct header (and if i trick the headers, it fails with a Failing Expected a value of type 'ASN1Integer', but got one of type 'ASN1Sequence
error).
Should this work somehow (i.e. it just a feature missing) or am I wrong in my usage?
Thanks
It would be great to see PGP key support for this package.
Are there any plans for supporting NNBD? (that would mainly mean to bump crypto to 3.0.0 and asn1lib to 0.9.0 and change some types here and there)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.