This commit is contained in:
Hamza-Ayed
2026-05-01 01:43:59 +03:00
parent cdda136006
commit 5fc160e374
25 changed files with 1526 additions and 1856 deletions

22
lib/debug_jwt.dart Normal file
View File

@@ -0,0 +1,22 @@
import 'package:sefer_admin1/controller/functions/encrypt_decrypt.dart';
import 'package:sefer_admin1/constant/info.dart';
void main() {
String testJwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYWRtaW4ifQ.signature";
print("Original: $testJwt");
String encrypted = c(testJwt);
print("Encrypted: $encrypted");
String decrypted = r(encrypted);
print("Decrypted: $decrypted");
String split = decrypted.split(AppInformation.addd)[0];
print("Split: $split");
if (testJwt == split) {
print("✅ Match!");
} else {
print("❌ Mismatch!");
}
}