Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 18, 2024 via composer

phpseclib/phpseclib 3.0.35

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.
Package summary
Share
4
issues
4
high severity
vulnerability
4
1
license
3
MIT
Package created
10 Jun 2012
Version published
29 Dec 2023
Maintainers
2
Total deps
3
Direct deps
2
License
MIT

Issues

4

4 high severity issues

high
via: phpseclib/phpseclib@3.0.35
via: phpseclib/phpseclib@3.0.35
via: phpseclib/phpseclib@3.0.35
via: phpseclib/phpseclib@3.0.35
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
paragonie/constant_time_encoding@v2.6.3
paragonie/random_compat@v9.99.100
phpseclib/phpseclib@3.0.35
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of phpseclib/phpseclib 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
paragonie/constant_time_encodingv2.6.322.25 kBMIT
prod
paragonie/random_compatv9.99.1005.93 kBMIT
prod

Visualizations

Frequently Asked Questions

What does phpseclib/phpseclib do?

PHP Secure Communications Library, also known as phpseclib, is a robust pure-PHP library that provides developers with implementations of RSA, AES, SSH2, SFTP, X.509, and other cryptographic algorithms. It's a crucial tool for ensuring secure communications in PHP applications. It supports numerous cryptographic primitives, including DES, 3DES, RC4, and others. The library includes implementations for various cryptographic functionalities in a PHP-friendly, easy-to-use format.

How do you use phpseclib/phpseclib?

Using phpseclib/phpseclib is straightforward. It can be installed via Composer, a PHP package manager, with the following command: composer require phpseclib/phpseclib:~3.0. The number at the end denotes the version of phpseclib – 3.0 in this case. After installation, the library's functions are available for use in your PHP scripts.

For instance, if you want to connect to a SSH-2 server, the code could look like this:

<?php
include('Net/SSH2.php');

$ssh = new Net_SSH2('www.domain.tld');
if (!$ssh->login('username', 'password')) {
    exit('Login Failed');
}

echo $ssh->exec('pwd');
echo $ssh->exec('ls -la');
?>

Bear in mind that the server's address, as well as the username and password, should be replaced with your own information.

Where are the phpseclib/phpseclib docs?

The official documentation for phpseclib/phpseclib can be found at phpseclib's official website. This includes a Manual with a wide range of topics and examples, providing a detailed guide on how to use the library effectively. For developers seeking more in-depth technical insights, the API documentation is available at api.phpseclib.com/3.0/. These resources are continually updated, providing a reliable source of information for both new and seasoned PHP developers aiming to secure their applications.