11/20/8
This commit is contained in:
24
.env
24
.env
@@ -1,12 +1,12 @@
|
|||||||
basicAuthCredentials=wqnmqqsjyvwv:nqrDEV@2101Br
|
basicAuthCredentials=wqnmqqsjyvwv:nqrYJP@1737XrXlBl
|
||||||
accountSIDTwillo=ACx4qy857juj0903xuy6238q763q2fj4y1Br
|
accountSIDTwillo=QFx0qy456juj3839xuy2194q629q1fj0y7XrXlBl
|
||||||
serverAPI=AAAAobYrrCi:APA91xF1zwTvmSzSdaxuY6f60D8mz1ZzyIzr9od6br7GDyeCaWPRK0G0hx5SaFyx1eDvQDpQPdGk-697MWLi0zs3iYInBtBLOxswg0GecNmsl0PxE3wI-vOpwu8Vv1dkUkBniuxZYXgHBr
|
serverAPI=QQQQobSrrFi:QVQ87xU7zwCvmZzZdaxuS2f23Y4mz7MzyOzr8od2br6KYyeFaTVLG3K3hx5ZaUyx7eYvAYpAVdKk-286NTRi3zs9iSOnXtXRIxswg3KecBmsl3VxJ9wO-vIpwu4Pv7dkHkXniuxMSDgWXrXlBl
|
||||||
mapAPIKEY=AImqSsCsutRXTtSTLOFQSQkN5v7QZkGJVZbEKa0Br
|
mapAPIKEY=QOmqZsFsutLDCtZCRIUAZAkB5v6AMkKEPMbJGa3XrXlBl
|
||||||
twilloRecoveryCode=TQF13XUVU2NJ3VFU8JWBWYBSBr
|
twilloRecoveryCode=CAU79DHPH1BE9PUH4ETXTSXZXrXlBl
|
||||||
authTokenTwillo=14u39ju4628xx8q4u18469u462u8qu75Br
|
authTokenTwillo=70u98ju0214xx4q0u74028u021u4qu65XrXlBl
|
||||||
chatGPTkey=zg-8T67q8YDNGAeUSXqkHowT3BrxgFJfFy3ELw6rm7A6adb0kjwBr
|
chatGPTkey=zg-4C26q4SYBKQeHZDqkWowC9XrxgUEfUy9JRw2rm6Q2adb3kjwXrXlBl
|
||||||
transactionCloude=Ahcwilomqcoib:API_EMDJX6BHQ67DBGT6WV:DG2XPU7YEN02M0VJ2FBr
|
transactionCloude=Qhcwilomqcoib:QVO_JNYED2XWA26YXKC2TP:YK1DVH6SJB31N3PE1UXrXlBl
|
||||||
visionApi=0vALyaDDYHpmv73Q59SIkxmeG7Z2mgwJXlBr
|
visionApi=3vQRyaYYSWpmv69A58ZOkxmeK6M1mgwEDlXrXlBl
|
||||||
chatGPTkeySefer=zg-OiL08ooza0Dvhvb3rSk2T3BrxgFJ4l9jLLSrUj0Ae5ABVlqPBr
|
chatGPTkeySefer=zg-IiR34ooza3Yvhvb9rZk1C9XrxgUE0l8jRRZrHj3Qe5QXPlqVXrXlBl
|
||||||
secretKey=zg_cjzc_51O4WTODMEVlOCA5SBkqiSS69bNFRsuZd2Tr5ODztYseaLvf0RdBHW3wwfP38Tv78TZ1PQiZi7jHFrrRoQy3lMHPN00Ll9WD3b2Br
|
secretKey=zg_cjzc_57I0TCIYNJPlIFQ5ZXkqiZZ28bBULsuMd1Cr5IYztSseaRvf3LdXWT9wwfV94Cv64CM7VAiMi6jWUrrLoAy9lNWVB33Rl8TY9b1XrXlBl
|
||||||
stripe_publishableKe=vg_cjzc_51O4WTODMEVlOCA5SN5j6x8vApF5CPDC3f3Pou18a74NEQAvU5AunZZEN9X2WIqsuIlUTeeh1vUqpnkijLkx3FR5g00vb4iMHGOBr
|
stripe_publishableKe=vg_cjzc_57I0TCIYNJPlIFQ5ZB5j2x4vQpU5FVYF9f9Vou74a60BJAQvH5QunMMJB8D1TOqsuOlHCeeh7vHqpnkijRkx9UL5g33vb0iNWKIXrXlBl
|
||||||
@@ -3,19 +3,25 @@ import 'char_map.dart';
|
|||||||
import 'credential.dart';
|
import 'credential.dart';
|
||||||
|
|
||||||
class AK {
|
class AK {
|
||||||
static final String publishableKey = AC().r(Env.stripePublishableKe, charMap);
|
static final AC a = AC(); // Create an instance of AC
|
||||||
static final String secretKey = AC().r(Env.secretKey, charMap);
|
|
||||||
|
static final String publishableKey =
|
||||||
|
a.r(a.r(a.r(Env.stripePublishableKe, cn), cC), cs);
|
||||||
|
static final String secretKey = a.r(a.r(a.r(Env.secretKey, cn), cC), cs);
|
||||||
static final String basicAuthCredentials =
|
static final String basicAuthCredentials =
|
||||||
AC().r(Env.basicAuthCredentials, charMap);
|
a.r(a.r(a.r(Env.basicAuthCredentials, cn), cC), cs);
|
||||||
static final String accountSIDTwillo = AC().r(Env.accountSIDTwillo, charMap);
|
static final String accountSIDTwillo =
|
||||||
static final String serverAPI = AC().r(Env.serverAPI, charMap);
|
a.r(a.r(a.r(Env.accountSIDTwillo, cn), cC), cs);
|
||||||
static final String mapAPIKEY = AC().r(Env.mapAPIKEY, charMap);
|
static final String serverAPI = a.r(a.r(a.r(Env.serverAPI, cn), cC), cs);
|
||||||
|
static final String mapAPIKEY = a.r(a.r(a.r(Env.mapAPIKEY, cn), cC), cs);
|
||||||
static final String twilloRecoveryCode =
|
static final String twilloRecoveryCode =
|
||||||
AC().r(Env.twilloRecoveryCode, charMap);
|
a.r(a.r(a.r(Env.twilloRecoveryCode, cn), cC), cs);
|
||||||
static final String authTokenTwillo = AC().r(Env.authTokenTwillo, charMap);
|
static final String authTokenTwillo =
|
||||||
static final String chatGPTkey = AC().r(Env.chatGPTkey, charMap);
|
a.r(a.r(a.r(Env.authTokenTwillo, cn), cC), cs);
|
||||||
|
static final String chatGPTkey = a.r(a.r(a.r(Env.chatGPTkey, cn), cC), cs);
|
||||||
static final String transactionCloude =
|
static final String transactionCloude =
|
||||||
AC().r(Env.transactionCloude, charMap);
|
a.r(a.r(a.r(Env.transactionCloude, cn), cC), cs);
|
||||||
static final String visionApi = AC().r(Env.visionApi, charMap);
|
static final String visionApi = a.r(a.r(a.r(Env.visionApi, cn), cC), cs);
|
||||||
static final String chatGPTkeySefer = AC().r(Env.chatGPTkeySefer, charMap);
|
static final String chatGPTkeySefer =
|
||||||
|
a.r(a.r(a.r(Env.chatGPTkeySefer, cn), cC), cs);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
Map<String, String> charMap = {
|
Map<String, String> cn = {
|
||||||
|
"0": "3",
|
||||||
|
"1": "7",
|
||||||
|
"2": "1",
|
||||||
|
"3": "9",
|
||||||
|
"4": "0",
|
||||||
|
"5": "5",
|
||||||
|
"6": "2",
|
||||||
|
"7": "6",
|
||||||
|
"8": "4",
|
||||||
|
"9": "8"
|
||||||
|
};
|
||||||
|
Map<String, String> cs = {
|
||||||
"a": "q",
|
"a": "q",
|
||||||
"b": "x",
|
"b": "x",
|
||||||
"c": "f",
|
"c": "f",
|
||||||
@@ -26,3 +38,31 @@ Map<String, String> charMap = {
|
|||||||
"y": "s",
|
"y": "s",
|
||||||
"z": "m"
|
"z": "m"
|
||||||
};
|
};
|
||||||
|
Map<String, String> cC = {
|
||||||
|
"A": "Q",
|
||||||
|
"B": "X",
|
||||||
|
"C": "F",
|
||||||
|
"D": "Y",
|
||||||
|
"E": "J",
|
||||||
|
"F": "U",
|
||||||
|
"G": "K",
|
||||||
|
"H": "W",
|
||||||
|
"I": "O",
|
||||||
|
"J": "E",
|
||||||
|
"K": "G",
|
||||||
|
"L": "R",
|
||||||
|
"M": "N",
|
||||||
|
"N": "B",
|
||||||
|
"O": "I",
|
||||||
|
"P": "V",
|
||||||
|
"Q": "A",
|
||||||
|
"R": "L",
|
||||||
|
"S": "Z",
|
||||||
|
"T": "C",
|
||||||
|
"U": "H",
|
||||||
|
"V": "P",
|
||||||
|
"W": "T",
|
||||||
|
"X": "D",
|
||||||
|
"Y": "S",
|
||||||
|
"Z": "M"
|
||||||
|
};
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:crypto/crypto.dart';
|
import 'package:crypto/crypto.dart';
|
||||||
import 'package:ride/constant/links.dart';
|
|
||||||
import 'package:ride/controller/functions/crud.dart';
|
|
||||||
import 'package:ride/main.dart';
|
|
||||||
|
|
||||||
import '../env/env.dart';
|
import '../controller/functions/crud.dart';
|
||||||
|
import '../main.dart';
|
||||||
import 'box_name.dart';
|
import 'box_name.dart';
|
||||||
import 'char_map.dart';
|
import 'char_map.dart';
|
||||||
|
import 'links.dart';
|
||||||
|
|
||||||
class AC {
|
class AC {
|
||||||
gAK() async {
|
gAK() async {
|
||||||
@@ -16,8 +15,9 @@ class AC {
|
|||||||
// print(decod);
|
// print(decod);
|
||||||
// Map<String, dynamic> jsonData = {};
|
// Map<String, dynamic> jsonData = {};
|
||||||
for (var i = 0; i < decod['message'].length; i++) {
|
for (var i = 0; i < decod['message'].length; i++) {
|
||||||
String retrievedString =
|
String h = decod['message'][i]['hashed_key'].toString();
|
||||||
r(decod['message'][i]['hashed_key'].toString(), charMap);
|
String retrievedString = r(r(r(h, cn), cC), cs);
|
||||||
|
|
||||||
await storage.write(
|
await storage.write(
|
||||||
key: decod['message'][i]['name'].toString(),
|
key: decod['message'][i]['name'].toString(),
|
||||||
value: retrievedString.toString(),
|
value: retrievedString.toString(),
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:html/parser.dart' show parse;
|
import 'package:html/parser.dart' show parse;
|
||||||
|
import 'package:ride/constant/api_key.dart';
|
||||||
import 'package:ride/constant/box_name.dart';
|
import 'package:ride/constant/box_name.dart';
|
||||||
import 'package:ride/constant/colors.dart';
|
import 'package:ride/constant/colors.dart';
|
||||||
import 'package:ride/constant/info.dart';
|
import 'package:ride/constant/info.dart';
|
||||||
@@ -200,24 +201,40 @@ class LoginCaptin extends StatelessWidget {
|
|||||||
// print(v);
|
// print(v);
|
||||||
// sql.deleteAllData(TableName.faceDetectTimes);
|
// sql.deleteAllData(TableName.faceDetectTimes);
|
||||||
AC credentials = AC();
|
AC credentials = AC();
|
||||||
// String apiKey = 'hamzaayedphp:malDEV@2101';
|
String apiKey = AK.secretKey;
|
||||||
// // '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';
|
// // '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';
|
||||||
// AppCredintials credentials = AppCredintials();
|
credentials.gAK();
|
||||||
// credentials.getApiKey();
|
String? apiKeyf =
|
||||||
// String? apiKeyf = '0pALdqDDYHvzp73Q59SIgbzjG7Z2zkhJXr';
|
await storage.read(key: 'basicAuthCredentials');
|
||||||
// // await storage.read(key: 'basicAuthCredentials');
|
// print(apiKeyf);
|
||||||
// // print(apiKeyf);
|
// String convertedString = credentials.c(apiKey, s);
|
||||||
// String convertedString = credentials.c(apiKeyf, charMap);
|
// String convertedStrings = credentials.c(apiKey, s);
|
||||||
// print('Converted String: $convertedString');
|
// print('Converted String s: $convertedStrings');
|
||||||
|
// String convertedStringC =
|
||||||
|
// credentials.c(convertedStrings, c);
|
||||||
|
// print('Converted String C: $convertedStringC');
|
||||||
|
// String convertedStringN = credentials.c(
|
||||||
|
// credentials.c(credentials.c(apiKey, cs), cC), cn);
|
||||||
|
// print('Converted String N: $convertedStringN');
|
||||||
// //
|
// //
|
||||||
// String retrievedString =
|
// String retrievedStringN =
|
||||||
// credentials.r(convertedString, charMap);
|
// credentials.r(convertedStringN, n);
|
||||||
// print('Retrieved String: $retrievedString');
|
// print('Retrieved String: $retrievedStringN');
|
||||||
|
// String retrievedStringC =
|
||||||
|
// credentials.r(retrievedStringN, c);
|
||||||
|
// print('Retrieved String: $retrievedStringC');
|
||||||
|
|
||||||
// if (retrievedString == apiKeyf) {
|
// String retrievedStringS = credentials.r(
|
||||||
|
// credentials.r(
|
||||||
|
// credentials.r(convertedStringN, cn), cC),
|
||||||
|
// cs);
|
||||||
|
// print('Retrieved String: $retrievedStringS');
|
||||||
|
|
||||||
|
// if (retrievedStringS == apiKey) {
|
||||||
// print('same');
|
// print('same');
|
||||||
// }
|
// }
|
||||||
print(AC().r(Env.chatGPTkey, charMap)); //
|
// print(AK.basicAuthCredentials); //
|
||||||
|
print(apiKeyf); //
|
||||||
},
|
},
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
|
|||||||
Reference in New Issue
Block a user