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