11/20/8
This commit is contained in:
@@ -3,19 +3,25 @@ import 'char_map.dart';
|
||||
import 'credential.dart';
|
||||
|
||||
class AK {
|
||||
static final String publishableKey = AC().r(Env.stripePublishableKe, charMap);
|
||||
static final String secretKey = AC().r(Env.secretKey, charMap);
|
||||
static final AC a = AC(); // Create an instance of AC
|
||||
|
||||
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 =
|
||||
AC().r(Env.basicAuthCredentials, charMap);
|
||||
static final String accountSIDTwillo = AC().r(Env.accountSIDTwillo, charMap);
|
||||
static final String serverAPI = AC().r(Env.serverAPI, charMap);
|
||||
static final String mapAPIKEY = AC().r(Env.mapAPIKEY, charMap);
|
||||
a.r(a.r(a.r(Env.basicAuthCredentials, cn), cC), cs);
|
||||
static final String accountSIDTwillo =
|
||||
a.r(a.r(a.r(Env.accountSIDTwillo, cn), cC), cs);
|
||||
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 =
|
||||
AC().r(Env.twilloRecoveryCode, charMap);
|
||||
static final String authTokenTwillo = AC().r(Env.authTokenTwillo, charMap);
|
||||
static final String chatGPTkey = AC().r(Env.chatGPTkey, charMap);
|
||||
a.r(a.r(a.r(Env.twilloRecoveryCode, cn), cC), cs);
|
||||
static final String authTokenTwillo =
|
||||
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 =
|
||||
AC().r(Env.transactionCloude, charMap);
|
||||
static final String visionApi = AC().r(Env.visionApi, charMap);
|
||||
static final String chatGPTkeySefer = AC().r(Env.chatGPTkeySefer, charMap);
|
||||
a.r(a.r(a.r(Env.transactionCloude, cn), cC), cs);
|
||||
static final String visionApi = a.r(a.r(a.r(Env.visionApi, cn), cC), cs);
|
||||
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",
|
||||
"b": "x",
|
||||
"c": "f",
|
||||
@@ -26,3 +38,31 @@ Map<String, String> charMap = {
|
||||
"y": "s",
|
||||
"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 '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 'char_map.dart';
|
||||
import 'links.dart';
|
||||
|
||||
class AC {
|
||||
gAK() async {
|
||||
@@ -16,8 +15,9 @@ class AC {
|
||||
// print(decod);
|
||||
// Map<String, dynamic> jsonData = {};
|
||||
for (var i = 0; i < decod['message'].length; i++) {
|
||||
String retrievedString =
|
||||
r(decod['message'][i]['hashed_key'].toString(), charMap);
|
||||
String h = decod['message'][i]['hashed_key'].toString();
|
||||
String retrievedString = r(r(r(h, cn), cC), cs);
|
||||
|
||||
await storage.write(
|
||||
key: decod['message'][i]['name'].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:get/get.dart';
|
||||
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/colors.dart';
|
||||
import 'package:ride/constant/info.dart';
|
||||
@@ -200,24 +201,40 @@ class LoginCaptin extends StatelessWidget {
|
||||
// print(v);
|
||||
// sql.deleteAllData(TableName.faceDetectTimes);
|
||||
AC credentials = AC();
|
||||
// String apiKey = 'hamzaayedphp:malDEV@2101';
|
||||
String apiKey = AK.secretKey;
|
||||
// // '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';
|
||||
// AppCredintials credentials = AppCredintials();
|
||||
// credentials.getApiKey();
|
||||
// String? apiKeyf = '0pALdqDDYHvzp73Q59SIgbzjG7Z2zkhJXr';
|
||||
// // await storage.read(key: 'basicAuthCredentials');
|
||||
// // print(apiKeyf);
|
||||
// String convertedString = credentials.c(apiKeyf, charMap);
|
||||
// print('Converted String: $convertedString');
|
||||
credentials.gAK();
|
||||
String? apiKeyf =
|
||||
await storage.read(key: 'basicAuthCredentials');
|
||||
// print(apiKeyf);
|
||||
// String convertedString = credentials.c(apiKey, s);
|
||||
// String convertedStrings = credentials.c(apiKey, s);
|
||||
// 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 =
|
||||
// credentials.r(convertedString, charMap);
|
||||
// print('Retrieved String: $retrievedString');
|
||||
// String retrievedStringN =
|
||||
// credentials.r(convertedStringN, n);
|
||||
// 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(AC().r(Env.chatGPTkey, charMap)); //
|
||||
// print(AK.basicAuthCredentials); //
|
||||
print(apiKeyf); //
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.close,
|
||||
|
||||
Reference in New Issue
Block a user