Encrypt DataBase SQLite3
Image1
Image2
Image3
https://mega.nz/#!d9VkDAgI
Chave de decodificação
!lyY0J7pq9CKtwJxUrK1g7jb8-lOJncgpg1DJT1Jk7RM
Image1
Image2
Image3
https://mega.nz/#!d9VkDAgI
Chave de decodificação
!lyY0J7pq9CKtwJxUrK1g7jb8-lOJncgpg1DJT1Jk7RM
sID = Crypto.BlowfishEncryptString(Input.GetText("Input0"), "trustno1withthispassword", 0);
sNOME = Crypto.BlowfishEncryptString(Input.GetText("Input1"), "trustno1withthispassword", 1);
sDATA = Crypto.BlowfishEncryptString(Input.GetText("Input2"), "trustno1withthispassword", 2);
if newData then
SQLite3.Query(db, "INSERT INTO Ussers values(NULL, '"
..sID.."','"
..sNOME.."','"
..sDATA.."')");
nLastError = Application.GetLastError();
if nLastError ~= SQLite3.OK then
Dialog.Message("Error:" ..nLastError, SQLite3.GetLastErrorString());
else
Dialog.Message("Ok", "Dados salvos com Sucesso", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Pesquisar_A()
end
else
SQLite3.Query(db, "INSERT or REPLACE INTO Ussers values('"
..xData.."','"
..sID.."','"
..sNOME.."','"
..sDATA.."')");
nLastError = Application.GetLastError();
if nLastError ~= SQLite3.OK then
Dialog.Message("Erro:" ..nLastError, SQLite3.GetLastErrorString());
else
Dialog.Message("Ok", "Dados salvos com Sucesso", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Pesquisar_A()
end
end
xButton.SetEnabled("xButton2", true);
xButton.SetEnabled("xButton1", false);