Skip to content
Advertisement

Tag: phpseclib

C# RSA Encrpytion -> Laravel phpseclib decrypt()

I’m using a key pair generated by phpseclib and then I use it to encrypt in C# a message and decrypt in PHP. The public key is: The conversion to XML is done via https://superdry.apphb.com/tools/online-rsa-key-converter Here is how the message is encrypted in C#: What is sent (encrypted message) by C# to PHP (changes everytime): On the decryption side in

End of file error for phpseclib for any file get

I’m getting a NET_SFTP_STATUS_EOF: End of file error for any file downloaded from a particular SFTP Server using phpseclib. A similar question was asked here though I don’t think it has any resolution. Oddly though, all the files seem to be importing correctly and with the same file size, however, the error is still produced and is making me slightly

How to decrypt data using phpseclib class Crypt_RSA that was encrypted by travist/jsencrypt

im using linux ubuntu server with nginx,mysql,php7.3 I’m trying to encrypt message using public rsa key, that was generated on server side using phpseclib (http://phpseclib.sourceforge.net/) Then i’m trying to use generated key to encrypt and decrypt message with JSEncrypt library (https://github.com/travist/jsencrypt), it works so far And finally im trying to decrypt JSEencrypted message with private key using phpseclib rsa implemetation.

phpseclib error bigInterger not found on line x

hi this my error when i want implement RSA algorithm in PHP how to fix this problem everything seems okay and i not changing anything Fatal error: Class ‘phpseclibMathBigInteger’ not found in phpseclib/Crypt/RSA.php on line 509 this is line 509 in __construct method of RSA class $this->zero = new BigInteger(0); how to fix this problem Answer My guess: you’re trying

phpseclib loadKey works on mac, not on CentOS

I am attempting to load a hardcoded (for the sake of testing) RSA public key in phpseclib (stable version 0.3.10). This code works perfectly correctly when run locally on my Mac and spits back out the key I entered: However when I push it to an AWS instance running CentOS, the loadKey call returns false. I’m not seeing any other

Advertisement