I have an application I would like to write in Erlang.  I would also like to utilize Mnesia.  A stringent requirement however be that each user's information be encrypted and be kept separate from other user's information.  I was looking at utilizing an embedded database like Db4o with encryption capabilities for each user but that would mean using Java or .NET as my platform (ugh).
<br><br>Does anybody have any ideas on how to encrypt a Mnesia database table?  I would like to create a disk based table for each user.  The user's credentials would be used to locate the appropriate Mnesia table and also as the key to decrypt the table on the fly at the file IO layer.
<br><br>Any thoughts on the matter would be greatly appreciated...<br><br>-Matthew<br>