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

Is this cryption method easy to crack?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 11-18-2017 , 08:15   Is this cryption method easy to crack?
Reply With Quote #1

Edit: I have lived in Germany for a short time because of a student exchange program. I forgot to change the location BLACK ROSE. Look at your country's rape rate before judging, humiliating other Nations and Countries. Your country is in a shitstorm and your message is discriminative and also irrelevant. Triggered Triggered Triggered
Quote:
Originally Posted by pupdebox View Post
Site non-steam ve slowhacking desteklemiyor. Buradan yardım alamazsın İnsanların izni olmadan tuşlarını bindlemek kötü bir şey.
I'm not hiding anything everybody knows that I'm Turkish. I'm proud of my nation. In addition, I have no religion. "Location" is a different thing you know ??

TOPIC
I did a simple cryption program for my homework. Do you think that this is easy to crack? It creates random array to crypt and decrypt so this array is always differenrent each time you open the program.

Code:
#include <stdio.h>
#include <stdlib.h>

int sifrele(char [],int o,int coz[]);
int main(){
	char mystring [] = "Merhaba arkadaslAr";
	int kodlar[sizeof(mystring)/sizeof(mystring[0])];
	
	for( int i=0; mystring[i] != '\0'; i++ ){
		kodlar[i] = rand() % 10;
		if(rand()%2 == 1) kodlar[i]*=-1;
	}
	
	printf("Orjinal hali: %s\n",mystring);
	sifrele(mystring,1,kodlar);
	printf("\nSifreli Hali: %s\n\n",mystring);
	printf("Eski haline getirmek icin bir tusa basin...\n\n");
    	system("pause");
    	sifrele(mystring,0,kodlar);
    	printf("\n\nEski hali: %s\n\n",mystring);
    	system("pause");
	return 0;
}

int sifrele(char yazi[],int o,int coz[]){
    for( int i=0; yazi[i] != '\0'; i++ ){
    	o ? (yazi[i] += coz[i]):(yazi[i] -=coz[i]);
    }
    return 0;
}
__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy

Last edited by pupdebox; 11-20-2017 at 04:32.
pupdebox is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 11-18-2017 , 09:02   Re: Is this cryption method easy to crack?
Reply With Quote #2

is this amxmodx code o_O?
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-18-2017 , 13:33   Re: Is this cryption method easy to crack?
Reply With Quote #3

This forum is for AMX Mod X scripting. Not for homework or other projects. There are plenty of programming forums out there that are better suited for this type of question.
__________________

Last edited by fysiks; 11-18-2017 at 15:56.
fysiks is online now
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-18-2017 , 14:49   Re: Is this cryption method easy to crack?
Reply With Quote #4

no, this is caesar cipher, the most primitive form known (well yours is a bit different but it's the same stuff)

look into RSA encryption if you want serious stuff, it's not that hard to wrap your head around it, try doing it on paper first and understand how it works

also don't post things like this here, you have millions of c/c++ forums and stackoverflow for this
ps: have the courtesy to translate the code to english before you ask for help
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-18-2017 , 15:06   Re: Is this cryption method easy to crack?
Reply With Quote #5

Also I wouldn't says that's encryption as it has randomness to it and the output won't be the same each time for certain input.
klippy is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 11-18-2017 , 16:08   Re: Is this cryption method easy to crack?
Reply With Quote #6

If that would make you happy i can convert this code easily to amxmodx. Why are you posting empty messages fysiks? It's just pointless and not worth your time. AND I DON'T NEED ANY OTHER COMMUNITY
__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy

Last edited by pupdebox; 11-18-2017 at 16:13.
pupdebox is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 11-18-2017 , 16:12   Re: Is this cryption method easy to crack?
Reply With Quote #7

@aron9forever I admire you and respect you soo much <3
Thanks for the information i'm gonna look at what caesar cipher is. I love this interesting stuff
__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy
pupdebox is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-19-2017 , 11:08   Re: Is this cryption method easy to crack?
Reply With Quote #8

Quote:
Originally Posted by pupdebox View Post
I DON'T NEED ANY OTHER COMMUNITY
Then i might aswell ask you guys what kind of oil I should put in my car, when changing it.

btw, there is off-topic section on this forum.
__________________
retired chump

Last edited by DjSoftero; 11-19-2017 at 11:10.
DjSoftero is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 11-19-2017 , 14:52   Re: Is this cryption method easy to crack?
Reply With Quote #9

Quote:
Originally Posted by DjSoftero View Post
Then i might aswell ask you guys what kind of oil I should put in my car, when changing it.
Quote:
Originally Posted by pupdebox View Post
If that would make you happy i can convert this code easily to amxmodx.
Pawn is based on C.
Modules are coded in C.
My topic here is related to PAWN scripting.
Do you get it now kid?
__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy

Last edited by pupdebox; 11-19-2017 at 14:58.
pupdebox is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 11-19-2017 , 15:57   Re: Is this cryption method easy to crack?
Reply With Quote #10

Quote:
Originally Posted by pupdebox View Post
Pawn is based on C.
Modules are coded in C.
My topic here is related to PAWN scripting.
Do you get it now kid?
Irrelevant.
Irrelevant, especially in Scripting Help.
Not even close.
No and I don't think you do either.

You have code that we are unfamiliar with which is also not in english. This is definitely off-topic. On top of that it is homework that you should do yourself. What do you really expect here?

Do you want an honest answer: IT DEPENDS!
What german homework has turkish in the code? If I was just guessing I would say you're an aspiring member of ISIS who is trying to develop a two-way encryption to avoid being detected. How do you get the encryption key over to the other end without sending it unencrypted? But I'm guessing nobody would be that fucking stupid, however ISIS is on the edge of retarded so who knows?
If the key is randomized every time it has to be sent the same path as the message. Any beginner could descipher that.
Also, it depends on what information you're sending. A person could descipher it as well if it was just a normal sentence. If it's a bunch of numbers, who knows what would be the right number?

Do you want a better answer? Give us all the neccessary parameters of the question. Kid.

Last edited by Black Rose; 11-19-2017 at 16:12.
Black Rose is offline
Old 11-19-2017, 18:59
TheWhitesmith
This message has been deleted by TheWhitesmith. Reason: ok that was dumb sry
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 21:35.


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