The classes used by TotalCross to work with encryption are:
Cipher: AES e RSA;
Digest: MD5, SHA1, SHA256 ;
Signature: PKCS1.
totalcross.db e totalcross.sql
The totalcross.db package has SQLite Java implementation, the most widely used portable database in the world. Allows you to use SQL commands to manipulate data files lightly and with low memory consumption.
The totalcross.sql package has JDBC implementation for use with SQLite - SQLiteUtil - as you can see in the code example below:
publicclassDatabaseManager {publicstaticSQLiteUtil sqliteUtil;static {try { sqliteUtil =newSQLiteUtil(Settings.appPath,"test.db");Statement st =sqliteUtil.con().createStatement();st.execute("create table if not exists person (cpf varchar)");st.close(); } catch (SQLException e) {e.printStackTrace(); } }}
To learn more about SQLite, how to implement SQLite Useful, creating applications with database and CRUD just read the link session below:
totalcross.io
The totalcross.io package concentrates the classes used in input and output.
ByteArrayStream
DataStream
File
BufferedStream
LineReader
device.bluetooth
device.gps
device.printer
device.scanner
totalcross.json
In this class we have the json library in Java, a lot used in the creation of Web Services through Rest. To understand better, visit the session below: