.NET Kodundan exe yapma

kaykay05

Katılımcı Üye
11 Eyl 2012
616
0
Arkadaşlar bir programın kaynak kodunu buldum bunu nasıl exe ye çevirebilirim? .Net dilinde yazılmış.
 

kaykay05

Katılımcı Üye
11 Eyl 2012
616
0
buyrun kod bu , biri bana öğretebilir mi nasıl exe yapabileceğimi , çünkü ileridede işime yarayacak bir şey bu

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.IO;
namespace Encryptionusing_Des

{
public partial class Form1 : Form
{

public Form1()

{
InitializeComponent();

}

private **** Encrypt_Click(object sender, EventArgs e)

{

byte[] buffer = Encryption(textBox1.Text,txtKey.Text);

string b = Convert.ToBase64String(buffer);

textBox2.Text = b;

}

public static byte[] Encryption(string PlainText,string key)

{

TripleDES des = CreateDES(key);

ICryptoTransform ct = des.CreateEncryptor();

byte[] input = Encoding.Unicode.GetBytes(PlainText);

return ct.TransformFinalBlock(input, 0, input.Length);

}

public static string Decryption(string CypherText,string key)

{

byte[] b = Convert.FromBase64String(CypherText);

TripleDES des = CreateDES(key);
ICryptoTransform ct = des.CreateDecryptor();
byte[] output = ct.TransformFinalBlock(b, 0, b.Length);
return Encoding.Unicode.GetString(output);

}

private **** Decrypt_Click(object sender, EventArgs e)

{

textBox3.Text = Decryption(textBox2.Text,txtKey.Text);

}

static TripleDES CreateDES(string key)

{
MD5 md5 = new MD5CryptoServiceProvider();
TripleDES des = new TripleDESCryptoServiceProvider();
des.Key = md5.ComputeHash(Encoding.Unicode.GetBytes(key));
des.IV = new byte[des.BlockSize / 8];
return des;
}
}
}
 

kaykay05

Katılımcı Üye
11 Eyl 2012
616
0
buyrun kod bu , biri bana öğretebilir mi nasıl exe yapabileceğimi , çünkü ileridede işime yarayacak bir şey bu

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.IO;
namespace Encryptionusing_Des

{
public partial class Form1 : Form
{

public Form1()

{
InitializeComponent();

}

private **** Encrypt_Click(object sender, EventArgs e)

{

byte[] buffer = Encryption(textBox1.Text,txtKey.Text);

string b = Convert.ToBase64String(buffer);

textBox2.Text = b;

}

public static byte[] Encryption(string PlainText,string key)

{

TripleDES des = CreateDES(key);

ICryptoTransform ct = des.CreateEncryptor();

byte[] input = Encoding.Unicode.GetBytes(PlainText);

return ct.TransformFinalBlock(input, 0, input.Length);

}

public static string Decryption(string CypherText,string key)

{

byte[] b = Convert.FromBase64String(CypherText);

TripleDES des = CreateDES(key);
ICryptoTransform ct = des.CreateDecryptor();
byte[] output = ct.TransformFinalBlock(b, 0, b.Length);
return Encoding.Unicode.GetString(output);

}

private **** Decrypt_Click(object sender, EventArgs e)

{

textBox3.Text = Decryption(textBox2.Text,txtKey.Text);

}

static TripleDES CreateDES(string key)

{
MD5 md5 = new MD5CryptoServiceProvider();
TripleDES des = new TripleDESCryptoServiceProvider();
des.Key = md5.ComputeHash(Encoding.Unicode.GetBytes(key));
des.IV = new byte[des.BlockSize / 8];
return des;
}
}
}

triple des şifresi kırma programının kodu
 

CETQ

Uzman üye
28 Şub 2011
1,297
0
using System.Security.Cryptography;

c# proje aç 4 tane textbox ekle ve 2 buton 1i şifreliyo 1i çözüyo
textBox1
textBox2
textBox3
txtKey

şifreleme butonuna çif tıkla bunu ekle
byte[] buffer = Encryption(textBox1.Text,txtKey.Text);

string b = Convert.ToBase64String(buffer);

textBox2.Text = b;

Çözme butonuna
textBox3.Text = Decryption(textBox2.Text,txtKey.Text);


-----------------------------------------
bunlarıda alta ekle

public static byte[] Encryption(string PlainText,string key)

{

TripleDES des = CreateDES(key);

ICryptoTransform ct = des.CreateEncryptor();

byte[] input = Encoding.Unicode.GetBytes(PlainText);

return ct.TransformFinalBlock(input, 0, input.Length);

}

public static string Decryption(string CypherText,string key)

{

byte[] b = Convert.FromBase64String(CypherText);

TripleDES des = CreateDES(key);
ICryptoTransform ct = des.CreateDecryptor();
byte[] output = ct.TransformFinalBlock(b, 0, b.Length);
return Encoding.Unicode.GetString(output);

}



static TripleDES CreateDES(string key)

{
MD5 md5 = new MD5CryptoServiceProvider();
TripleDES des = new TripleDESCryptoServiceProvider();
des.Key = md5.ComputeHash(Encoding.Unicode.GetBytes(key));
des.IV = new byte[des.BlockSize / 8];
return des;
}
}
 
Son düzenleme:
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.