Page 1 of 2

Sqlite encrypted database

Posted: Fri Jun 10, 2016 1:48 pm
by mustafa
Hola amigos:
Les dejo una nueva entrega
Experimentando con Database Sqlite:
Novedades:
La Database está en Boton Empleados
en Password podemos ver Username y Password
la primera entrada del Password es "ADMIN" y
"ADMIN" si se olvidan borren el fichero
"xControl.mem" y se genera uno nuevo Fichero
"xControl.mem" y podran entrar de nuevo.

En Altas de la Base de Datos y Cambios se ha incorporado
un Nuevo Boton que nos permite elegir la foto de la Nueva
Ficha o hacer un cambio tambien si sabemos en nº de Foto
se puede hacer manualmente desde nº de Photo.
Podemos hacer busqueda por Código o por Nombre o mediante
Sort By dejar la Base de datos organizada por Código o por
Nombre. esto es interesante si queremos sacar un listado
de la Base de datos que podemos hacer de dos formas.
Printer o File Pdf.
La Primera saca un listado ordenado por campo elejido
y la segunda opción genera automatico un fichero Pdf
que se deposita en Carpeta -> Listado_Pdf
Cuando cerramos la aplicación se encripta la Base de Datos
creandose el Fichero->nombre1.sqlite.
No puedo conseguir el borrado total del Original ->nombre.sqlite
una vez cerrada la aplicación para que no pueda copiarse.

He provado diferentes metodos, que basandome en las enseñanzas del
Maestro Rathinagiri en los Pos publicados.

https://groups.google.com/forum/#!topic ... lnX98avwbA
viewtopic.php?f=5&t=2269

He encontrado una solución que no es muy academíca pero parece
que parcialmente cumple mi objetivo que es impedir que se vea el
contenido del Fichero "nombre.sqlite".
La solución es aplicar la sentencia -> sqlite3_exec(dbo,"VACUUM")
que deja toda la base de datos vacia de contenido.

Espero que el sample les pueda interesar y si algun compañero puede
indicarme como poder cerrar la base de datos y luego hacer
Ferase( "nombre.sqlite" )
Con -> hb_gcall( .T. ) no consigo que se borre la base dedatos.
Siguel el hilo abierto sin solución
viewtopic.php?f=5&t=2269&start=20

Saludos.
Mustafa
*-----------------------------------Google ------------------------------------*
Hello friends:
I leave a new delivery
Experimenting with Sqlite Database:
What's New:
The Database is in Button Employees
we can see in Password Username and Password
the first entry of the Password is "ADMIN" and
"ADMIN" if they forget to delete the file
"XControl.mem" and generates a new file
"XControl.mem" and be able to enter again.

In High of Database and Change has been incorporated
A new button that lets you choose the photo of the New
Record or make a change too if we know number Photo
It can be done manually from number Photo.
We can search for Code or by Name or by
Sort By leaving Database organized by Code or
Name. this is interesting if we make a list
the database we can do in two ways.
Pdf Printer or File.
First pulls out a list sorted by field Elected
and the second automatic option generates a PDF file
deposited on Folder -> Listado_Pdf
When we close the application encrypts the Database
creating the File-> nombre1.sqlite.
I can not get reset the Original -> nombre.sqlite
once the application so that it can not be copied closed.

I have proven different methods, based on the teachings of
Master Rathinagiri published in Pos.
 
https://groups.google.com/forum/#!topic ... lnX98avwbA
viewtopic.php?f=5&t=2269

I have found a solution that is not very academic but it seems
partially fulfilled my goal which is to prevent you see the
File content "nombre.sqlite".
The solution is to implement the judgment -> sqlite3_exec(dbo,"VACUUM")

I hope that the sample may be interested and if any partner can
show me how to close the database and then make
FERASE ( "nombre.sqlite")
With -> hb_gcall (.T.) I can not get the base dedatos deleted.
Follow the thread open unsolvable
viewtopic.php?f=5&t=2269&start=20

Greetings.
Mustafa

Re: Sqlite encrypted database

Posted: Fri Jun 10, 2016 1:50 pm
by bpd2000
Nice creation
Thank you Mustafa for sharing

Re: Sqlite encrypted database

Posted: Fri Jun 10, 2016 5:42 pm
by tonton2
merci pour le partage

Re: Sqlite encrypted database

Posted: Sat Jun 11, 2016 9:00 am
by serge_girard
Thanks Mustafa!

Serge

Re: Sqlite encrypted database

Posted: Sat Jun 11, 2016 10:14 am
by bpd2000
Hi Mustafa
This application is multi user ?

Re: Sqlite encrypted database

Posted: Sat Jun 11, 2016 11:09 am
by mustafa
Hola bpd2000
En principio solo es de un usuario, pero creo que seria
facil implementarlo a varios usuarios como el Sample
que Presente en el Foro:
viewtopic.php?f=9&t=4787&start=10
"Password_Restricted_Access.zip" que está basado en
Distintos Usuarios y distintas categorias de accesos
segun los colores de los Semaforos.
Saludos
*------------------------- Google---------------------------*
Hello bpd2000
In principle it is only a user, but I think it would be
easily deploy it to multiple users as the Sample
to Present at the Forum:
viewtopic.php?f=9&t=4787&start=10
"Password_Restricted_Access.zip" which is based on
Different users and different categories of access
according to the colors of semaphores.
regards
Mustafa

Re: Sqlite encrypted database

Posted: Sat Jun 11, 2016 6:45 pm
by esgici
Thanks amigo Mustafa!

Saludos

Re: Sqlite encrypted database

Posted: Sat May 06, 2017 11:39 am
by vientopamperosur
Buenos días, estoy muy agradecido por esta demo, tengo que realizar un proyecto con sqlite y estaba viéndolo, pero al querer compilarlo con IDE, en hmg oficial, no genera el exe, no entiendo que me falta, podría ayudarme si es tan amable???

Re: Sqlite encrypted database

Posted: Sat May 06, 2017 11:40 am
by vientopamperosur
Hello, I am very grateful for this demo, I have to do a project with sqlite and I was looking at it, but when I want to compile it with IDE, in official hmg, it does not generate the exe, I do not understand that I am missing, could you help me if it is so kind?

Re: Sqlite encrypted database

Posted: Sat May 06, 2017 2:33 pm
by serge_girard
What error you get?

Serge