2
0
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:
2019-11-29 15:55:40 +03:00
parent 0d171c5d02
commit 0e158db171
44 changed files with 768 additions and 8763 deletions
@@ -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)];
}