From d6e05cc3bca53565d9ca65377ab8b0b6190774b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Nov 2013 18:01:14 +0000 Subject: preparing to the transparent cyphering: end of MS_DB_CRYPT_ENCODESTRING/MS_DB_CRYPT_DECODESTRING git-svn-id: http://svn.miranda-ng.org/main/trunk@6938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/crypt/encrypt.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/modules/crypt') diff --git a/src/modules/crypt/encrypt.cpp b/src/modules/crypt/encrypt.cpp index 3e5da905ee..2868eb41c4 100644 --- a/src/modules/crypt/encrypt.cpp +++ b/src/modules/crypt/encrypt.cpp @@ -23,32 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "..\..\core\commonheaders.h" -//VERY VERY VERY BASIC ENCRYPTION FUNCTION - -void Encrypt(char*msg, BOOL up) -{ - int jump; - if (up) - jump = 5; - else - jump = -5; - - for (int i = 0; msg[i]; i++) - msg[i] = msg[i] + jump; -} - -static INT_PTR EncodeString(WPARAM wParam, LPARAM lParam) -{ - Encrypt((char*)lParam, TRUE); - return 0; -} - -static INT_PTR DecodeString(WPARAM wParam, LPARAM lParam) -{ - Encrypt((char*)lParam, FALSE); - return 0; -} - ///////////////////////////////////////////////////////////////////////////////////////// static int CompareFunc(const CRYPTO_PROVIDER *p1, const CRYPTO_PROVIDER *p2) @@ -97,9 +71,6 @@ static INT_PTR srvGetProvider(WPARAM wParam, LPARAM lParam) int InitCrypt(void) { - CreateServiceFunction(MS_DB_CRYPT_ENCODESTRING, EncodeString); - CreateServiceFunction(MS_DB_CRYPT_DECODESTRING, DecodeString); - CreateServiceFunction(MS_CRYPTO_REGISTER_ENGINE, srvRegister); CreateServiceFunction(MS_CRYPTO_ENUM_PROVIDERS, srvEnumProviders); CreateServiceFunction(MS_CRYPTO_GET_PROVIDER, srvGetProvider); -- cgit v1.2.3