Skip to content

Commit 8254dba

Browse files
committed
updates for 3.0 release
1 parent 9250b65 commit 8254dba

16 files changed

+21
-2
lines changed

crypt/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ <h2>Speed Comparisons</h2>
267267
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
268268
<option value="1.0">1.0</option>
269269
<option value="2.0">2.0</option>
270+
<option value="3.0">3.0</option>
270271
</select>
271272
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
272273
</div>

crypt/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ <h2>Speed Comparisons</h2>
265265
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
266266
<option value="1.0">1.0</option>
267267
<option value="2.0">2.0</option>
268+
<option value="3.0">3.0</option>
268269
</select>
269270
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
270271
</div>

index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ <h2>Usage</h2>
101101

102102
include('Net/SSH2.php');
103103
?></pre>
104-
<h2>Other Branches: 2.0 and master</h2>
104+
<h2>Other Branches: 2.0, 3.0 and master</h2>
105105
<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>
106-
<p>The master branch has an unstable API that is subject to change. The master branch will eventually turn into 3.0, at which point, this website will be re-designed with an emphasis on that version.</p>
106+
<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>
107+
<p>The master branch has an unstable API that is subject to change. The master branch will eventually turn into 4.0.</p>
107108
</div>
108109

109110
<div class="grid_24">

js/common.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ if (ver == '2.0' && parts[2] != '2.0') {
44
window.location = parts[0] + '/' + parts[1] + '/2.0/' + parts[2] + window.location.hash;
55
} else if (ver == '1.0' && parts[2] == '2.0') {
66
window.location = parts[0] + '/' + parts[1] + '/' + parts[3] + window.location.hash;
7+
} else if (ver == '3.0') {
8+
window.location = 'https://phpseclib.com/';
79
}
810

911
var manageSelects = function() {
@@ -95,6 +97,8 @@ $(document).ready(function() {
9597
window.location = parts[0] + '/' + parts[1] + '/2.0/' + parts[2] + window.location.hash;
9698
} else if (ver == '1.0' && parts[2] == '2.0') {
9799
window.location = parts[0] + '/' + parts[1] + '/' + parts[3] + window.location.hash;
100+
} else if (ver == '3.0') {
101+
window.location = 'https://phpseclib.com/';
98102
}
99103
});
100104
});

math/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ <h2>Notes</h2>
257257
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
258258
<option value="1.0">1.0</option>
259259
<option value="2.0">2.0</option>
260+
<option value="3.0">3.0</option>
260261
</select>
261262
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
262263
</div>

math/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ <h2>Notes</h2>
255255
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
256256
<option value="1.0">1.0</option>
257257
<option value="2.0">2.0</option>
258+
<option value="3.0">3.0</option>
258259
</select>
259260
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
260261
</div>

rsa/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ <h2>Partial Keys</h2>
347347
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
348348
<option value="1.0">1.0</option>
349349
<option value="2.0">2.0</option>
350+
<option value="3.0">3.0</option>
350351
</select>
351352
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
352353
</div>

rsa/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ <h2>Partial Keys</h2>
346346
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
347347
<option value="1.0">1.0</option>
348348
<option value="2.0">2.0</option>
349+
<option value="3.0">3.0</option>
349350
</select>
350351
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
351352
</div>

sftp/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ <h2>Downloading files</h2>
182182
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
183183
<option value="1.0">1.0</option>
184184
<option value="2.0">2.0</option>
185+
<option value="3.0">3.0</option>
185186
</select>
186187
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
187188
</div>

sftp/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ <h2>Downloading files</h2>
180180
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
181181
<option value="1.0">1.0</option>
182182
<option value="2.0">2.0</option>
183+
<option value="3.0">3.0</option>
183184
</select>
184185
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
185186
</div>

ssh/2.0/auth.html

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ <h2>Better Example Wanted</h2>
143143
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
144144
<option value="1.0">1.0</option>
145145
<option value="2.0">2.0</option>
146+
<option value="3.0">3.0</option>
146147
</select>
147148
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
148149
</div>

ssh/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ <h2>Sending Special Characters</h2>
274274
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
275275
<option value="1.0">1.0</option>
276276
<option value="2.0">2.0</option>
277+
<option value="3.0">3.0</option>
277278
</select>
278279
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
279280
</div>

ssh/auth.html

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ <h2>Better Example Wanted</h2>
141141
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
142142
<option value="1.0">1.0</option>
143143
<option value="2.0">2.0</option>
144+
<option value="3.0">3.0</option>
144145
</select>
145146
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
146147
</div>

ssh/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ <h2>Sending Special Characters</h2>
272272
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
273273
<option value="1.0">1.0</option>
274274
<option value="2.0">2.0</option>
275+
<option value="3.0">3.0</option>
275276
</select>
276277
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
277278
</div>

x509/2.0/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ <h2>Output:</h2>
383383
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
384384
<option value="1.0">1.0</option>
385385
<option value="2.0">2.0</option>
386+
<option value="3.0">3.0</option>
386387
</select>
387388
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
388389
</div>

x509/examples.html

+1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ <h2>Output:</h2>
381381
<select name="version" id="versionsel" style="display: block; margin: 0 auto; text-align: center">
382382
<option value="1.0">1.0</option>
383383
<option value="2.0">2.0</option>
384+
<option value="3.0">3.0</option>
384385
</select>
385386
<button id="versionnext" style="margin-top: 20px; background: #4CAF50; border: none; color: white; padding: 7px 15px">Continue &gt;</button>
386387
</div>

0 commit comments

Comments
 (0)