bonjour
je cherche un simple programme de cryptage/decryptage xor en c ou php
celui-ci par exemple me renvoie une erreur a la compilation
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 #include<stdio.h> #include <string.h> void crypte(unsigned char *texte,unsigned char password[]) { int i; int i2; i2=0; for (i=0 ; i<strlen(texte) ; i++) { texte[i]=texte[i]^password[i2]; i2++; if (i2==strlen(password)) i2=0; } }
merci pour votre aide
Partager