-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
126 lines (117 loc) · 6.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>phpseclib: pure PHP implementations of SSH, SFTP, RSA and X.509</title>
<meta name="google-site-verification" content="DHz4kg_uhBzFTmMZSrMTtF9lqPofgrUucAmZrsakViI" />
<meta name="description" content="Easy to use, easy to install, actively maintained and actively supported, phpseclib is the best way to utilize SSH, SFTP, RSA and X.509 in PHP" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19770173-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/text.css" />
<link rel="stylesheet" href="css/960.css" />
<link rel="stylesheet" href="css/prettify.css"/>
<link rel="stylesheet" href="css/jquery-ui-1.8.21.button.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery-ui-1.8.21.button.min.js"></script>
<script src="js/prettify.js"></script>
<script>
$(document).ready(function() {
$('.button').button();
});
</script>
<style media="screen">
h1 { text-align: left; margin-bottom: 0 }.red { color: #e11 }
.prettyprint { background: #f5f4ee; max-height: 350px; overflow: scroll }
h2 { font-size: 15px }
code { background: #ffa }
#permlink { text-align: right }
#permlink span { font-size: 10px; color: blue; text-decoration: underline; cursor: pointer }
.buttonOff { display: none }
ul { margin-bottom: 0 }
#pgup { font-size: 10px; margin-bottom: 2em }
#ciphers li { line-height: 1.5em }
.reset { margin-top: -6em } /* ie. #ciphers li line-height */
.column2 { margin-left: 8.5em }
</style></head>
<body onload="prettyPrint()">
<div class="container_12">
<div class="grid_12" style="margin-bottom: 20px">
<h1>php<span class="red">sec</span>lib 1.0: An Introduction</h1>
</div>
<div class="grid_4">
<h2>Pure-PHP implementations of:</h2>
<ul>
<li><a href="math/intro.html">BigIntegers</a></li>
<li><a href="rsa/intro.html">RSA</a></li>
<li><a href="ssh/intro.html">SSH2</a></li>
<li><a href="sftp/intro.html">SFTP</a></li>
<li><a href="x509/intro.html">X.509</a></li>
<li>
<a href="crypt/examples.html">Symmetric key encryption</a>
<div id="ciphers"><ul>
<li class="column1">AES</li>
<li class="column1">Rijndael</li>
<li class="column1">Twofish</li>
<li class="column1">Blowfish</li>
<li class="column2 reset">DES</li>
<li class="column2">3DES</li>
<li class="column2">RC4</li>
<li class="column2">RC2</li>
</ul></div>
</li>
</ul>
<p>
<a href="http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.23.zip/download" class="button">Download phpseclib 1.0.23</a>
</p>
<p>
<a href="http://stackoverflow.com/questions/tagged/phpseclib" class="button">Get Support</a>
</p>
</div>
<div class="grid_8">
<h2>Compatibility</h2>
<p>php<span class="red">sec</span>lib is designed to be ultra-compatible. It works on PHP4+ (PHP4, assuming the use of <a href="http://pear.php.net/package/PHP_Compat">PHP_Compat</a>) and doesn't require any extensions. For purposes of speed, <b>mcrypt is used</b> if it's available <b>as is gmp or bcmath</b> (in that order), but they are not required.</p>
<h2>Interoperability</h2>
<p>php<span class="red">sec</span>lib is designed to be <a href="interop.html">fully interoperable with OpenSSL</a> and other standardized cryptography programs and protocols.</p>
<h2>MIT-Licensed</h2>
<p>php<span class="red">sec</span>lib is licensed with the <a href="http://en.wikipedia.org/wiki/MIT_License">MIT-license</a>. By virtue of not being <a href="http://en.wikipedia.org/wiki/Copyleft">copyleft</a> it's less restrictive than the GPL, which in turn, means that it's fully <a href="http://www.gnu.org/licenses/license-list.html#X11License">GPL compatible</a>.</p>
<h2>Usage</h2>
<p>This library is written using the same conventions that libraries in the PHP Extension and Application Repository (PEAR) used to be written in (current requirements break PHP4 compatibility). In particular, this library needs to be in your include_path:</p>
<pre class="prettyprint">
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('Net/SSH2.php');
?></pre>
<h2>Other Branches: 2.0, 3.0 and master</h2>
<p>The 2.0 branch has pretty much the exact same API as the 1.0 branch, save for that it is namespaced, uses PHP5-style constructors (thereby avoiding E_DEPRECATED errors) and requires the use of an autoloader. <a href="2.0.html">A few examples</a>.</p>
<p>The 3.0 branch has a vastly different API for public key cryptography. It introduces support for Ed25519 / Ed449, Curve25519, Curve449, ECDSA / ECDH (with support for 66 curves), DSA and DH keys. Symmetric key algorithm support is expanded: ChaCha20, Poly1305 and GCM support are added. SHA3 has been added as well. Documentation can be found at <a href="https://phpseclib.com">phpseclib.com</a>.</p>
<p>The master branch has an unstable API that is subject to change. The master branch will eventually turn into 4.0.</p>
</div>
<div class="grid_24">
<hr />
<p style="float: left; width: 25%">
<img src="images/pear-icon.png" alt="PEAR Icon" width="16" height="16" /> PEAR Channel:<br /><a href="pear.htm">phpseclib.sourceforge.net</a>
</p>
<p style="float: left; width: 25%; text-align: center">
<a href="https://github.com/phpseclib/phpseclib"><img src="images/github.png" alt="GitHub Icon" width="88" height="39" /></a>
</p>
<p style="float: left; width: 25%; text-align: center">
<script type="text/javascript" src="http://www.ohloh.net/p/110463/widgets/project_thin_badge.js"></script>
</p>
<p style="float: left; width: 25%; text-align: right">
<a href="http://sourceforge.net/donate/index.php?group_id=198487"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" alt="Support This Project" /></a>
</p>
</div>
<!-- end .grid_24 -->
</div>
<!-- end .container_12 -->
</body>
</html>