xref: /dokuwiki/vendor/phpseclib/phpseclib/README.md (revision 2114d546ec6f96fab0adeb9fd2882676b8bed768)
1# phpseclib - PHP Secure Communications Library
2
3[![CI Status](https://github.com/phpseclib/phpseclib/actions/workflows/ci.yml/badge.svg?branch=3.0&event=push "CI Status")](https://github.com/phpseclib/phpseclib)
4
5## Supporting phpseclib
6
7- [Become a backer or sponsor on Patreon](https://www.patreon.com/phpseclib)
8- [One-time donation via PayPal or crypto-currencies](http://sourceforge.net/donate/index.php?group_id=198487)
9- [Subscribe to Tidelift](https://tidelift.com/subscription/pkg/packagist-phpseclib-phpseclib?utm_source=packagist-phpseclib-phpseclib&utm_medium=referral&utm_campaign=readme)
10
11## Introduction
12
13MIT-licensed pure-PHP implementations of the following:
14
15SSH-2, SFTP, X.509, an arbitrary-precision integer arithmetic library, Ed25519 / Ed449 / Curve25519 / Curve449, ECDSA / ECDH (with support for 66 curves), RSA (PKCS#1 v2.2 compliant), DSA / DH, DES / 3DES / RC4 / Rijndael / AES / Blowfish / Twofish / Salsa20 / ChaCha20, GCM / Poly1305
16
17* [Browse Git](https://github.com/phpseclib/phpseclib)
18
19## Documentation
20
21* [Documentation / Manual](https://phpseclib.com/)
22* [API Documentation](https://api.phpseclib.com/3.0/) (generated by Doctum)
23
24## Branches
25
26### master
27
28* Development Branch
29* Unstable API
30* Do not use in production
31
32### 3.0
33
34* Long term support (LTS) release
35* Major expansion of cryptographic primitives
36* Minimum PHP version: 5.6.1
37* PSR-4 autoloading with namespace rooted at `\phpseclib3`
38* Install via Composer: `composer require phpseclib/phpseclib:~3.0`
39
40### 2.0
41
42* Long term support (LTS) release
43* Modernized version of 1.0
44* Minimum PHP version: 5.3.3
45* PSR-4 autoloading with namespace rooted at `\phpseclib`
46* Install via Composer: `composer require phpseclib/phpseclib:~2.0`
47
48### 1.0
49
50* Long term support (LTS) release
51* PHP4 compatible
52* Composer compatible (PSR-0 autoloading)
53* Install using Composer: `composer require phpseclib/phpseclib:~1.0`
54* [Download 1.0.25 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.25.zip/download)
55
56## Security contact information
57
58To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
59
60## Support
61
62Need Support?
63
64* [Checkout Questions and Answers on Stack Overflow](http://stackoverflow.com/questions/tagged/phpseclib)
65* [Create a Support Ticket on GitHub](https://github.com/phpseclib/phpseclib/issues/new)
66
67## Special Thanks
68
69<p align="left">
70    <a target="_blank" href="https://www.sovereign.tech/tech/phpseclib">
71        <img src="https://phpseclib.com/img/sponsors/sovereign-tech-agency.webp" alt="Sovereign Tech Agency" style="width: 200px">
72    </a>
73</p>
74
75## Additional Thanks
76
77- Allan Simon
78- [Anna Filina](https://afilina.com/)
79- delovelady
80- [ChargeOver](https://chargeover.com/)
81- <a href="https://jb.gg/OpenSource"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg" height="20px"></a>
82
83## Contributing
84
851. Fork the Project
86
872. Ensure you have Composer installed (see [Composer Download Instructions](https://getcomposer.org/download/))
88
893. Install Development Dependencies
90    ```sh
91    composer install
92    ```
93
944. Create a Feature Branch
95
965. Run continuous integration checks:
97   ```sh
98   composer global require php:^8.1 squizlabs/php_codesniffer friendsofphp/php-cs-fixer vimeo/psalm
99   phpcs --standard=build/php_codesniffer.xml
100   php-cs-fixer fix --config=build/php-cs-fixer.php --diff --dry-run --using-cache=no
101   psalm --config=build/psalm.xml --no-cache --long-progress --report-show-info=false --output-format=text
102   vendor/bin/phpunit --verbose --configuration tests/phpunit.xml
103   ```
104
1056. Send us a Pull Request
106