Crypter in C Enjoy.

Go down

Crypter in C Enjoy. Empty Crypter in C Enjoy.

Post by Aker on Fri Jun 03, 2011 10:12 pm

This is for all the starters looking for how to encrypt a string. It is *very* basic, you can add functions to it, so it can encrypt files etc.

Enjoy:

main.c
Code:


// Crypter Updated.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "encrypt.h"
#include <stdio.h>
#include <Windows.h>

#undef MAX_PATH
int _tmain(int argc, _TCHAR* argv[])
{
   char eword[64];
   printf("Enter word to encrypt: ");
   scanf_s("%s", eword, 64);
   encrypt(eword);
   printf("Crypted word is: %s", eword);
   getchar();
   getchar();
   return EXIT_SUCCESS;
}

encrypt.h
Code:

#ifndef _APPLE_

#endif
#include <windows.h>

#define COLOR GetStdHandle(STD_OUTPUT_HANDLE)

DWORD encrypt(char *word)
{
   int j;

   for(j = 0; word[j] != '\0'; ++j)
      ++word[j];

   return word && SetConsoleTextAttribute(COLOR, 5);

}

targetver.h
Code:

#pragma once

#include <SDKDDKVer.h>

stdafx.c

Code:

#include "stdafx.h"

Very basic enjoy

Oh i forgot here is some code if you only want to encrypt every 2 letters:
Code:

for(j = 0; word[j] != '\0'; ++j && j++)
  ++word[j];
bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce

Aker
Site Regular
Site Regular

PSL Awards : N/A
Posts : 32

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by meh on Sat Jun 04, 2011 2:09 pm

absolutely pointless. These encryption's don't do anything other than swap out letters...

l2 heap

meh
Site Beast
Site Beast

PSL Awards : 1 Award (Click to view)
Posts : 287

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Aker on Mon Jun 06, 2011 1:01 am

Ok then heres a bit more advanced one:

Code:

DWORD encrypt(char *word)
{
  int j;

  for(j = 0; word[j] != '\0'; ++j)
      word[j] = (word[j] - (strlen(word) % 64) );

  return word && SetConsoleTextAttribute(COLOR, 5);

}

Aker
Site Regular
Site Regular

PSL Awards : N/A
Posts : 32

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by meh on Mon Jun 06, 2011 10:07 am

/facepalm

meh
Site Beast
Site Beast

PSL Awards : 1 Award (Click to view)
Posts : 287

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Aker on Mon Jun 06, 2011 6:43 pm

LOL fine how bout i make a actually crypter for you meh?

Aker
Site Regular
Site Regular

PSL Awards : N/A
Posts : 32

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Dice-K on Mon Jun 06, 2011 8:37 pm

who cares about ur computer problems, u have a new 1 each month.. the point is tomorrow is gonna be the happiest day of my life 6/6/11 or 7/6/11 i honestly dont know or give a fuck but yeah
Dice-K
Dice-K
Site Veteran
Site Veteran

PSL Awards : 2 Awards (Click to view)
Posts : 53

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by meh on Mon Jun 06, 2011 10:07 pm

what?

meh
Site Beast
Site Beast

PSL Awards : 1 Award (Click to view)
Posts : 287

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Warcat on Mon Jun 06, 2011 11:10 pm

meh wrote:what?
Warcat
Warcat
Site Postaholic
Site Postaholic

PSL Awards : 10 Awards (Click to view)
Posts : 976

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by KansasCity on Tue Jun 07, 2011 12:41 am

Warcat wrote:
meh wrote:what?
KansasCity
KansasCity
Site Beast
Site Beast

PSL Awards : 11 Awards (Click to view)
Posts : 221

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Magz on Tue Jun 07, 2011 10:07 am

lolwut elephant

Magz
Site Regular
Site Regular

PSL Awards : 2 Awards (Click to view)
Posts : 33

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by meh on Tue Jun 07, 2011 10:50 am

/thread derailed

meh
Site Beast
Site Beast

PSL Awards : 1 Award (Click to view)
Posts : 287

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Anchor_Man on Tue Jun 07, 2011 11:28 am

wait what?
Anchor_Man
Anchor_Man
Site Professional
Site Professional

PSL Awards : 3 Awards (Click to view)
Posts : 147

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by KansasCity on Tue Jun 07, 2011 6:38 pm

Ok. This thread is done.

Aker do not post any more of these types of things on the forums. No one cares.
KansasCity
KansasCity
Site Beast
Site Beast

PSL Awards : 11 Awards (Click to view)
Posts : 221

Back to top Go down

Crypter in C Enjoy. Empty Re: Crypter in C Enjoy.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum