Files
Siro/siro_admin/lib/debug_jwt.dart
2026-06-09 08:40:31 +03:00

23 lines
589 B
Dart

import 'package:siro_admin/controller/functions/encrypt_decrypt.dart';
import 'package:siro_admin/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!");
}
}