نسخة كاملة من مستودع سيرو عند ecfe7568 لتكون أساس تطبيق «انطلق». نُسخ المتعقَّب في git فقط (12,509 ملفاً / 302 م.ب) بـ git archive، لا `cp -r` — فاستُثنيت تلقائياً مخلفات البناء (build · node_modules · .dart_tool · .gradle · Pods ≈ 10.7 غ.ب) وكل ما يستثنيه .gitignore. هذا الكوميت **بلا أي تعديل عمداً** حتى يكون كل ما يليه فرقاً مقروءاً مقابل سيرو الأصلي. سيرو نفسه لم يُمسّ. ⚠️ لا يبني بعد: `.env` و`lib/env/env.g.dart` غير متعقَّبين في سيرو (وهذا صحيح — أسرار لكل مستأجر). كل تطبيق فلاتر هنا يحتاج .env خاصاً بانطلق ثم توليد env.g.dart عبر build_runner. لا تُنسخ أسرار سيرو. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
23 lines
589 B
Dart
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!");
|
|
}
|
|
}
|