Criptare dati sensibili nel database

07 Dec '11, 07:35 PM
97,878 Views
No Forum Badges

Salve, so che è possibile cifrare le tuple nel database, ma non con sistemi che permettono il decrypt dei dati. Percui la mia domanda è: si puó implementare un algoritmo di cifratura arbitrario? Se si come?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Hero - Level 9

Ciao,

potresti provare a creare una classe ed implementare un Hibernate Type estendendo ad esempio StringType e redefinendo i metodi set() e get().

http://www.docjar.com/html/api/org/hibernate/type/StringType.java.html

Nel Data Model occorre selezionare gli Attributi desiderati ed indicare la classe nella Proprietà Hibernate Type nel Tab Mapping del Pannello delle Proprietà

Inoltre potrebbe essere poco significativo aggiungere condizioni sugli Attributi o degli ordinamenti sulle unit perchè i dati saranno criptati.


Hi,

you can try to prepare a class, implement an Hibernate Type which extends the StringType and redefine the set() and get() methods.

http://www.docjar.com/html/api/org/hibernate/type/StringType.java.html

In the Data Model you have to select the Attributes and set your class to the Hibernate Type Property in the Mapping tab in the Properties View.

Moreover Attributes Conditions and sorting are not useful for crypted data.

   
x 0
Forum Hero - Level 9

Ciao,

puoi cifrare gli Attributi di tipo Password. Se ad esempio consideri l'Entità User nel Data Model e selezioni l'Attributo "password" puoi impostare l'algoritmo di cifratura da applicare. In questo caso nel Pannello delle Proprietà c'è la voce Crypt Algorithm abilitata. Puoi quindi selezionare un algoritmo tra quelli proposti oppure aggiungerne uno. Cliccando sul pulsante Browse accedi alle Preferenze, qui puoi aggiungere i riferimenti all'algorimo desiderato.


Hi,

you can encrypt the Password Attributes. For example if you consider the User Entity in the Data Model and choose the "password" Attribute you can apply an encryption algorithm. In this case the Crypt Algorithm Property in the Properties View is enabled. Now you can choose the algoritm that you prefer between the shown items or add a new one. Clicking on the Browse button the Preference Window will be opened and here you can add the references to the desired algorithm.

 
x 0
No Forum Badges

Si, questo lo so, ma forse non mi sono spiegato. Facciamo l'esempio che ho un db di un sistema anagrafico. Quindi ho un'entità con nome,cognome e data di nascita. Voglio proteggere questi tre valori nel db, ma voglio anche poterci accedere e leggere il contenuto. Nel modo da lei indicato dovrei indicare tutto password, e come gestisco la data? E i tipi blob? E per decifrare quello che ho criptato?

 
x 0
Answer at this question and get points!

Related questions

502 proxy error-generate and run add html Adding and deleting from the database Add logging capability to a Groovy script (unit) Add select all to Checkable List Agregar boton de cambio de contraseña en el login AJAX events problem to external JavaScript Alimentar graficas con base de datos Atributos Condicionales heredados Attribute comparison in a selector unit Automatic file upload Ayuda Simple List Component Layout personalizado [beginner] - How to store and browse data collected with BPM app? Business object data Button to go on another page Cancellare campi e tabelle dal database Cannot add a Database in the Domain Model Cannot connect to MySQL Cannot insert an entity in the database Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! Change uplod directory and protect anauthorized access to files Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Conexion a Oracle 12g Connection refused. connect to Cloud Content module page variable won't assign. Convert data in a Calculated attribute Convert selector component result to single value Creación DB Apache Derby - Modelado BPMN CSV Component with utf8 encoding Custom components Custom descriptors Custom Plug-in Custom Time Unit Custom Unit and AJAX / SOAP Custom Unit: Difficult example in Guide ... any suggestions? Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy Data flow from a page which is not visible anymore DB in Data Service Project Deploy in Cloud Amazon Beanstalk with Postgres Dynamic data type Dynamic link labelling for Custom Unit Empty record mistakenly saved Encoding Confirm Dialog Error updating metadata process EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Execute truncate sql query file analysis then update MySQL database Find Model Problemas Foriegn key relationship Generate and run locally on webratio professional edition. Get size of Multi Form with Pictures Object Array getting data from database Getting the absolute path of a RTXBLOBData Google Map Unit Groovy and Database Groovy script numer after an error Guardar Saltos de LINEA Hide a form if condition if true How can I add a credit card payment gateway or integrate paypal in my web app logic? How can i add html into a page? How can I import a view in the Domain Model as an attribute of an Entity? how can i open a pdf file using download dialog How complex can Custom Unit output be? How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to block empty string in Database How to calculate dates between start and end point? How to disble derby database? How to fix Network error(status 0) How to Retreive data from Multi Selection Field Array How to run the example from Custom Unit Guide? How to run web app with authentication service How to show certain values derived from relations in the domain model? I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Importing JAR Libraries into Script Unit Importing jar library Insert data into database Is it possible to create a derived relationship between databases? Is there any custom unit store or repository? Do you create/sell custom units? JAR importing java.lang.NullPointerException JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Mapping database of the entity '...' is unspecified Merge the result of 2 (or more) flows [MOBILE] Can't synchronize domain model with beck end DB [MOBILE] Script doesn't work! Modify generated code / inject own HTML, Javascript code into existing generted code. More Custom Unit questions: example of Content and Operation Unit? Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem MySQL Driver jdbc Need help with Landmark No Apache Derby driver found No Database on Cloud account No database on my cloud account Overlays for Google Map Unit. Passing JSON Object to Model Personalizzare lo stile di un progetto Personalizzazione del login component PostgreSQL Predefined values in database Problem accessing MySQL with WebRatio 6 Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problema Invocation Unit Problemas con el Operations View Delete Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Custom components: Can't get values from output parameters on ok flow. Problems with Database Metadata Problem with fields with accents used in attribute condition Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table publish web service for storing information in PostgreSQL DB following XSD Resource query a database Refresh and Synchronize DB Problems Relaciones Removing the User-Group-Module tagles Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default "Run Now" on a job scheduled to run later script component Script eseguito alla User Login Script Unit e Mysql ScritpUnit and JSON data Selezione sul giorno "Events Planning" Setting Upload directory Share database connection Shuffling Script Solve "Generation Error" with Generate and Run option Standard confirm dialog replacement Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Stored procedure component Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Trying to Synchronize Domain Model Twitter Unit - Get Geo location of twitt Unable to execute the script java.lang.NullPointerException Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value upload file and the move it to other location Usage of the Gantt Unit User Login Timestamp Username come chiave Using own User and Group tables ¿Visor de imágenes y reproductor de video para la versión 7.2? Image viewer and video player for version 7.2? Web project without initial login form - how to create custom logins? WebRatio 6.1.2: Groovy Version / Versione Groovy Webratio Add-ons no permite login Web ratio data model Webratio don't recognize JSON library WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table WebRatio Platform 7.2 Community Cloud Edition Where is the ACME demo data stored?! White report