19
This commit is contained in:
22
lib/debug_jwt.dart
Normal file
22
lib/debug_jwt.dart
Normal 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!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user