Exemplo n.º 1
0
        static public MemoryStream EncryptDataBase(DataLayer.DataBaseInstance _dataToCrypt, byte[] _key)
        {
            byte[] _outputData = SharedCryptingMethods.DatabaseObjectToByteArray(_dataToCrypt);
            //Encrypt will be here


            //end of encrypt

            return(new MemoryStream(_outputData));
        }
 static public MemoryStream EncryptDataBase(DataLayer.DataBaseInstance _dataToCrypt)
 {
     byte[] _outputData           = SharedCryptingMethods.DatabaseObjectToByteArray(_dataToCrypt);
     byte[] DataBaseObjectInShell = SharedCryptingMethods.EncryptDatabaseBytesToDatabaseObjectShellArray(_outputData);
     return(new MemoryStream(DataBaseObjectInShell));
 }