Coder Social home page Coder Social logo

rsa_pkcs's People

Contributors

amaurel avatar atrope avatar augustozanellato avatar priezz avatar pulyaevskiy avatar racr0x avatar scribetw avatar shamblett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rsa_pkcs's Issues

Compatibility with PointyCastle

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?

pkcs8 doesnt work in 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.

PKCS12

Do you have any plans on supporting PKCS12 / PFX aswell?

dart2js compatability

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

RangeError (index): Invalid value: Not in inclusive range 0..5: 6 when passing a X.509 version 1 certificate

-----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.

Cannot parse Firebase RSA key

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

NNBD support

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.