public MessageManager()
        {
            db         = DatabaseInterface.getInstance(Globals.DB_NAME); //creates database interface which connects to <DB_NAME>
            keyManager = new KeyManager();

            //byte[] key = keyManager.getTodaysKey();
            //Console.WriteLine(Convert.ToBase64String(key));
        }
 public ContactManager()
 {
     db = DatabaseInterface.getInstance(Globals.DB_NAME);
     loadContacts(); //loads contacts from database into list
 }
Ejemplo n.º 3
0
        private byte[] entropy = new byte[] { 1, 6, 7, 14 }; //used in ProtectedData

        public KeyManager()
        {
            db       = DatabaseInterface.getInstance(Globals.DB_NAME); //creates database interface which connects to <DB_NAME>
            keyCache = new Dictionary <int, byte[]>();
        }