28 Aralık 2018 Cuma
c# Form Şifreleme sistemi yapmak (Harfleri bir ileri almak)
Şifre gir kısmına girdiğimiz kelime messagebox yardımıyla şifrelenmiş haliyle gelicek. Şifre çöze girdiğimiz değerlerde messagebox yardımıyla şifresi cözülmüş şekilde gelicektir.
string text = textBox1.Text;
string encodedText = string.Empty;
List<char> chrText = text.ToCharArray().ToList(); // şifre gir
for (int i = 0; i < chrText.Count; i++)
{
encodedText = encodedText + (char)(chrText[i] + 1);
}
MessageBox.Show(encodedText);
string text = textBox2.Text;
string decodedText = string.Empty;
List<char> chrText = text.ToCharArray().ToList(); // şifre çöz
for (int i = 0; i < chrText.Count; i++)
{
decodedText = decodedText + (char)(chrText[i] - 1);
}
MessageBox.Show(decodedText);
Kaydol:
Kayıt Yorumları (Atom)
c# Veritabanıyla giriş yapıp, üye olmak ve şifre unutmak!
Üye olmak;;; if (con.State == ConnectionState.Closed) { con.Open(); string kayit = ...
-
Merhaba TextBox'tan alınan sayının 10'a bölünen değerlerini bulacağız. Öncellikle ihtiyacımız olan 3 TextBox , 3 ListBox ve bir d...
-
Merhaba arkadaşlar bugün bilgisayardan fotoğraf çekmeyi göstereceğim. Bunun için ihtiyacımız olan bir picturebox ve button; OpenFi...
-
Herkese selamlar; Bugun buttonunuz rengini nasıl değiştireceğinizi göstereceğim. Bu işlemi ben radioButton ile yapmayı tercih ediyorum. ...
Hiç yorum yok:
Yorum Gönder