JavaScript Library bigint.js v0.5 beta6
2003 Dec 23
by www.faireal.net

This page is in Unicode, UTF-8, in English and Japanese.

What is bigint.js?

bigint.js is a general library for infinite-precision integer arithmetic on JavaScript. For instance, JavaScript's own Math.pow(2,100) returns this lossy value:
1.2676506002282294e+30,
while Bigint.pow(2,100) returns losslessly
126 7650600 2282294 0149670 3205376 (31-digit).

bigint.js is fast enough for many purposes (e.g. 2^10000 < 1 sec). The current status of bigint.js is v0.5 beta. No functions are documented yet.

What is PigPGP?

PigPGP is a JavaScript application implimented with bigint.js. It is a "tiny PGP", or a cryptosystem based on 128-, 256- and 360-bit RSA, usable on Mozilla 1.6 (slow), MSIE 6, and Netspcae 4.80. The current status of PigPGP is v0.2 alpha.

Free, No Warranty

The source code is free but no warranty is provided. You can use anything, with or without modification, wihout asking. You don't even have to show the original author's name or anything to use it.

The newest version should be found at http://www.faireal.net/demo/.

The author can be reached at seelie317 (at) faireal.net. As is already said, you don't have to ask the author to do anything with these, and no support will be provided even if you ask.


PigPGP v0.2 Alphaテスト2

2003-12-23

このテストでは、動的にセッション鍵を発生させ、 そのセッション鍵で入力テキストを暗号化するとともに、 暗号化した出力の末尾に、復号用セッション鍵をRSAで暗号化したものを付け足します。 さらに、デバッグ出力では、この変換を逆向きに行い、原文を復元します。

前回からの変更点

テスト用の短い鍵2
Debug: [ Public Key ] PUB_PIGv2@7@VrpEIn%|?F[Nh[Ii*?[F[D5-

Debug: RSA Public Key (PigPGP v0.2 / Bigint v0.5)
Key length: 132-bit
power: 7 (1-digit)
modulus: 57272 5404423 6582774 1981793 1868779 0880571 (40-digit)

Debug: [ Secret Key ] SEC_PIGv2@8ih[GNh(SWY9[AQX[Ehw[HA_@VrpEIn%|?F[Nh[Ii*?[F[D5-

Debug: RSA Secret Key (PigPGP v0.2 / Bigint v0.5)
Key length: 132-bit
power: 8181 7914917 6654586 0098552 5989173 2923679 (39-digit)
modulus: 57272 5404423 6582774 1981793 1868779 0880571 (40-digit)

細かい点は準備ができていません。 Unicodeを用いているので、サロゲートを除くBMPのすべてのコードポイントが利用可能です。 とりあえずネスケ4のUnicode対応については我慢してください。

Input
Command
Progress
Output
Error
Debug

[index]