Cleanup core branch
[platal.git] / htdocs / javascript / secure_hash.js
diff --git a/htdocs/javascript/secure_hash.js b/htdocs/javascript/secure_hash.js
deleted file mode 100644 (file)
index 66dca47..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/***************************************************************************\r
- *  Copyright (C) 2003-2008 Polytechnique.org                              *\r
- *  http://opensource.polytechnique.org/                                   *\r
- *                                                                         *\r
- *  This program is free software; you can redistribute it and/or modify   *\r
- *  it under the terms of the GNU General Public License as published by   *\r
- *  the Free Software Foundation; either version 2 of the License, or      *\r
- *  (at your option) any later version.                                    *\r
- *                                                                         *\r
- *  This program is distributed in the hope that it will be useful,        *\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *\r
- *  GNU General Public License for more details.                           *\r
- *                                                                         *\r
- *  You should have received a copy of the GNU General Public License      *\r
- *  along with this program; if not, write to the Free Software            *\r
- *  Foundation, Inc.,                                                      *\r
- *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *\r
- ***************************************************************************/\r
-\r
-function hash_encrypt(a) {\r
-    return hex_sha1(a);\r
-}\r
-\r
-var hexa_h = "0123456789abcdef";\r
-\r
-function dechex(a) {\r
-    return hexa_h.charAt(a);\r
-}\r
-\r
-function hexdec(a) {\r
-    return hexa_h.indexOf(a);\r
-}\r
-\r
-function hash_xor(a, b) {\r
-    var c,i,j,k;\r
-    c = "";\r
-    i = a.length;\r
-    j = b.length;\r
-    if (i < j) {\r
-        var d;\r
-        d = a; a = b; b = d;\r
-        k = i; i = j; j = k;\r
-    }\r
-    for (k = 0; k < j; k++)\r
-        c += dechex(hexdec(a.charAt(k)) ^ hexdec(b.charAt(k)));\r
-    for (; k < i; k++)\r
-        c += a.charAt(k);\r
-    return c;\r
-}\r
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: