bonjour à tous !!
je suis nouvelle ici j'aimerais savoir si quelqu'un peut m'aider ?
j'ai réussi à crypter mais je n'arrive pas à décrypter si quelqu'un à une idée! sa serait cool
merci ^^

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace projetcsharpcesar
{
    public partial class Form1 : Form
    {
 
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            char entreC;
            int clef = 8;/*c'est la clef qui sert au cryptage*/
            entreC = richTextBox1.Text.ToCharArray()[0];
            int resultatcry = (entreC + clef)%256;
            richTextBox2.Text = resultatcry.ToString();  
        }
 
        private void button2_Click(object sender, EventArgs e)
        {
            char entreC;
            int clef= 8;
            entreC = richTextBox1.Text.ToCharArray()[0];
            int resultatdécry = (entreC - clef) * 256;
            richTextBox3.Text = resultatdécry.ToString();
        }
Voici mon code pour crypter