Skip to content

phpseclib not working #1

Description

@mvhaen

I tried out this project but was unable to get jsbn working with phpseclib. I ended up writing my own little project that got everything working.

The issue is that phpseclib generates a multi-line string in OpenSSL style notation as public key. This causes two problems

  • javascript does support multi-line string literals.
  • jsbn actually expects the public key to be represented in hex, so you need to take some extra steps in phpseclib to get that output.

You could use the code at https://github.com/mvhaen/phpseclib-jsbn-rsa as a start to fix your component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions