Raised This Month: $51 Target: $400
 12% 

encrypt <-> decrypt string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 06-16-2012 , 05:39   encrypt <-> decrypt string
Reply With Quote #1

I can't use md5, because I can't decrypt data. I need to a encrypt and decrypt a string, but how could be possible?
killergirl is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-16-2012 , 06:35   Re: encrypt <-> decrypt string
Reply With Quote #2

This?
http://forums.alliedmods.net/showthread.php?t=169405
__________________
<VeCo> is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-16-2012 , 13:31   Re: encrypt <-> decrypt string
Reply With Quote #3

There's a couple encryption plugins laying around the site. Not many i've seen are up to my standards of encryption security....but a human won't read them without trouble.

md5 is NOT encryption. Its a hashing method. It'd be good if you want to store passwords or other authentication information. But once the data gets hashed, it isn't come back from it. algorithmicly.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-17-2012 , 04:15   Re: encrypt <-> decrypt string
Reply With Quote #4

Explain what your trying to do.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-17-2012 , 05:50   Re: encrypt <-> decrypt string
Reply With Quote #5

Code:
new const g_iMyOwnDecimals[ ] = {   15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39, 15, 25, 32, 54, 92, 24, 75, 23, 12, 12, 63, 64, 56, 13, 12, 15, 83, 32, 12, 32, 53, 78, 93, 92, 31, 51, 56, 66, 77, 88, 99, 13, 14, 15, 16, 17, 18, 73, 31, 12, 25, 27, 28, 35, 39 }; Encript( cString[ ], iChars ) {   static i, j;   if( !j )     j = sizeof( g_iMyOwnDecimals );   for( i = 0; i < iChars; i++ )   {     if( i < j )       cString[ i ] += g_iMyOwnDecimals[ i ];     else     {       cString = "";       break;     }   } } Decript( cString[ ], iChars ) {   static i, j;   if( !j )     j = sizeof( g_iMyOwnDecimals );   for( i = 0; i < iChars; i++ )   {     if( i < j )       cString[ i ] -= g_iMyOwnDecimals[ i ];     else     {       cString = "";       break;     }   } }

Code:
new cString[ 32 ]; formatex( cString, 31, "%s", "Era odata..." ); Encript( cString, 32 ); // Use 32 for this function... From 0 to 31 are 32... Decript( cString, 32 ); // Use 32 for this function... From 0 to 31 are 32...
__________________

Last edited by claudiuhks; 06-18-2012 at 07:26.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode