Skip to content

Commit

Permalink
phpseclibを翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
宮川 貴子 authored and 宮川 貴子 committed Aug 20, 2012
1 parent 5328aae commit 713c225
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions vendor/phpseclib.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,48 +46,48 @@ <h1>

<h2>PHPSecLib</h2>

<h3>Introduction</h3>
<h3>はじめに</h3>

<p>
The PHP Secure Communications Library contains LGPL-licensed pure-PHP implementations of arbitrary-precision integers,
fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, AES, SSH-1, SSH-2, and SFTP. This book discusses how to use them.
PHPのセキュリティで保護された通信ライブラリは、任意精度の整数のLGPLライセンスの純粋なPHPの実装が含まれています,
PKCS#1 (v2.1) に帰順したRSA, DES, 3DES, RC4, Rijndael, AES, SSH-1, SSH-2, そして SFTPです。この本はそれらを使用する方法について説明します。
</p>

<h3>Documentation</h3>
<h3>ドキュメンテーション</h3>

<p>You can find the original PHPSecLib documentation <a href="http://phpseclib.sourceforge.net/documentation/" target="_blank">here</a>.</p>
<p>オリジナルのPHPSecLibドキュメントは <a href="http://phpseclib.sourceforge.net/documentation/" target="_blank">こちら</a>です。</p>

<h3>FuelPHP Usage</h3>
<h3>FuelPHPの使用</h3>

<p>
The PHPSecLib vendor package is used by FuelPHP in the Crypt class, to generate secure hashes, and in the Auth package, which uses PBKDF2.
PHPSecLibベンダのパッケージは、安全なハッシュを生成する為に、CryptクラスでFuelPHPで使用されています。PBKDF2を使用して認証パッケージにされています。
</p>

<h3>Application Usage</h3>
<h3>アプリケーションの使用状況</h3>

<p>
For use in your application the PHPSecLib package has been converted to a namespaced, autoloader friendly library.
You can use it directly from your application.
アプリケーションで使用するためPHPSecLibパッケージは名前空間が付き、オートローダで、使いやすいライブラリになっています。
アプリケーションから直接使用することができます。
</p>
<pre class="php"><code>&lt;?php
/**
* Example controller that does an SSH login
* SSHログインを行うサンプルコントローラ
*/

class Controller_Ssh extends Controller
{
public function action_index()
{
// connect to my server
// サーバーに接続する
$ssh = new \PHPSecLib\Net_SSH2('myserver.example.org');

// login
// ログイン
if ( ! $ssh->login('username', 'password'))
{
throw new \Exception('ssh login failed');
}

// return the view that formats the directory list
// ディレクトリリストをViewに渡す。
return View::forge('ssh/dirinfo', array(
'pwd' => $ssh->exec('pwd'),
'info' => $ssh->exec('ls -la'),
Expand Down

0 comments on commit 713c225

Please sign in to comment.