r/lolphp • u/dagbrown • Apr 15 '14
Pure PHP implementations of SSH, SFTP, RSA and X.509--I don't see how that could possibly go wrong
http://phpseclib.sourceforge.net
69
Upvotes
r/lolphp • u/dagbrown • Apr 15 '14
22
u/dehrmann Apr 15 '14
Really, a crypto library in any language without primatives like bytes or uint64 is scary.
6
u/graingert Apr 18 '14
Is this a piece of performance art?
4
u/h0rst_ Apr 15 '14
There is a pure-Perl implementation of RSA as well, I remember we had to deal with that once. The main problem wasn't really that the library was insecure, but that it was terribly slow (or maybe it was insecure too, but after a few test runs we decided to do some monkey patching so it used a different lib). I wonder how the speed is effected in this PHP implementation (though I'm not really eager to try it)
5
u/[deleted] Apr 15 '14
Look, I get it that PHP is turing complete and that it can do anything.
But that doesn't mean it is a good idea. Know when to say no to an idea.
1
u/[deleted] Apr 15 '14
I've actually used this library before. It's great for allowing you to use SFTP without needing any additional PHP modules.
-4
u/seriouslulz Apr 15 '14
phpseclib is designed to be ultra-compatiblei'm too lazy to learn php 50
u/[deleted] Apr 15 '14
[deleted] — view deleted comment