From c8f05153768565cbeca6797215cfd1b789120693 Mon Sep 17 00:00:00 2001 From: cbonar Date: Sun, 16 Mar 2008 11:56:45 +0000 Subject: [PATCH] + first import --- ciform/trunk/src/ciform.js | 380 ++++++++++++++++++++++++++++++++ ciform/trunk/src/ciform.php | 129 +++++++++++ ciform/trunk/src/ciform_pgp.php | 11 + ciform/trunk/src/ciform_rsa.php | 139 ++++++++++++ 4 files changed, 659 insertions(+) create mode 100644 ciform/trunk/src/ciform.js create mode 100644 ciform/trunk/src/ciform.php create mode 100644 ciform/trunk/src/ciform_pgp.php create mode 100644 ciform/trunk/src/ciform_rsa.php diff --git a/ciform/trunk/src/ciform.js b/ciform/trunk/src/ciform.js new file mode 100644 index 0000000..06f9490 --- /dev/null +++ b/ciform/trunk/src/ciform.js @@ -0,0 +1,380 @@ +/** + @fileoverview + + This library provides specifications and basic functions to add encryption functionalities to an HTML form, + therefore called "Ciform". + + @requires base64.js {@link www.haneWIN.de} + @requires hex.js {@link www.haneWIN.de} + @requires sha1.js {@link www.haneWIN.de} + @requires rsa.js {@link www.haneWIN.de} +*/ +// Data from the server is available in a literal object named 'CIFORM' +// e.g. { 'serverURL':"login.php", 'pubKey':{'type':'rsa', 'e':10000,'m':24} } + +// TODO : define the Ciform protocol using constants that can change from one server to another +// This protocol would be retrieved from the server (either with a