Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php version? #13

Closed
MrMoronIV opened this issue Jun 9, 2019 · 1 comment
Closed

Php version? #13

MrMoronIV opened this issue Jun 9, 2019 · 1 comment

Comments

@MrMoronIV
Copy link

I would like to implement a php version of this so it can be used using an API in my own app. Is there an implementation of this algorithm in php somewhere?

Also the open issue of the Edge browser giving different results wories me a bit for this js implementation, maybe giving different results per platform, hence the php aproach :)

@tmthrgd
Copy link
Owner

tmthrgd commented Jun 11, 2019

As far as I’m aware no there isn’t. There is a reference C version and a Java version in the official https://gitlab.com/MasterPassword/MasterPassword repository.

Perhaps you could use the C version from PHP (it’s been years since I wrote PHP). Otherwise the algorithm is described here with test vectors available here. If you do go down that route, make sure you use solid, well-implemented cryptographic implantations.

Regarding #8, I unfortunately don’t have easy access to a Windows machine with Edge installed to debug what’s going on. Any help on that would be appreciated, even just running the test suite at https://tmthrgd.github.io/mpw-js/test/.

I’m going to close this issue as I don’t think there’s anything actionable here.

@tmthrgd tmthrgd closed this as completed Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants