mirror of
https://github.com/tenrok/Rfid-Credential-Provider.git
synced 2026-06-05 16:52:24 +03:00
Z-2 USB Reader
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <string>
|
||||
|
||||
void decrypt(char* toDecrypt, char* password){
|
||||
for(int i = 0; i < strlen(toDecrypt); i++){
|
||||
void decrypt(char* toDecrypt, char* password) {
|
||||
for (int i = 0; i < strlen(toDecrypt); i++) {
|
||||
toDecrypt[i] = (char)(((int)toDecrypt[i]) - 1);
|
||||
toDecrypt[i] = toDecrypt[i] ^ password[i % strlen(password)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user