mswt文件怎么打开|如何为配置文件加密

⑴ 怎样将宏业文件转换为mswt 投标文件

项目做完后保存后,点击文件。其它接口数据导入导出,绵阳接口数据,导出投标数据。就是mswt格式的报价文件。

⑵ 如何为配置文件加密

在web.config或app.config文件里我们经常会存储一些敏感信息,比如connectionStrings或者appSettings,比如像下面的文件。<?xml version="1.0"?><configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <connectionStrings> <add name="MyNwConnectionString" connectionString="Server=myServerAddress;Database=myDataBase;User Id=myUsername; Password=myPassword;"/> </connectionStrings> <appSettings> <add key="User" value="myUsername"/> <add key="Password" value="myPassword"/> </appSettings></configuration>using System;using System.Configuration;namespace WebConfigEncryptTest{ public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string user = ConfigurationManager.AppSettings.Get("User"); string password = ConfigurationManager.AppSettings.Get("Password"); string connectionString = ConfigurationManager.ConnectionStrings["MyNwConnectionString"].ConnectionString; } }}(一)加密文件可以使用的Provider.NET为我们提供了一个工具aspnet_regiis.exe来对web.config文件中的敏感信息进行加密(app.config文件可以先改名为web.config,加密后再改回app.config)。你可以使用两个provider中的一个来进行加密:System.Configuration.:在System.Configuration.dll中,使用Windows DPAPI(Data Protection API)来进行加密,密钥存在Windows Local Security Authority(LSA)中。注意:当使用时,加密文件所使用的帐号需要与运行web application的帐号相同,否则web application无法解密加密的内容。System.Configuration.:在System.Configuration.dll中,使用RSA算法来进行加密(RSA算法是非对称加密,参见《对称加密与非对称加密 》),公钥存放在config文件当中,只有加密的计算机有密钥。通常是默认的缺省provider。(二)加密文件的命令加密web.config文件可以使用:aspnet_regiis -pef section web-app-physical-dir Encrypt the configuration section. Optional arguments: [-prov provider] Use this provider to encrypt. 比如运行下面的命令就会分别对connectionStrings和appSettings中的信息进行加密: aspnet_regiis.exe -pef "connectionStrings" "C:\myweb\HelloService"aspnet_regiis.exe -pef "appSettings" "C:\myweb\HelloService"加密后的web.config文件变成: <?xml version="1.0"?><configuration> <system.web> <compilation targetFramework="4.0" /> </system.web> <connectionStrings configProtectionProvider=""> <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <KeyName>Rsa Key</KeyName> </KeyInfo> <CipherData> <CipherValue>E2fO9C0TJVxImLYQZza+fCQdDbTpNh/kOKLRsK6zcFjkgtUCl6SnMViuu/2G1NVTxqXyEWYwyK6AiCZA+feeG/+f2EIimP7LJI+JRZVerI4MU6Ke3wxm2S/ATc73/W6eg9808f4//JB0kso0kGJ9i+==</CipherValue> </CipherData> </EncryptedKey> </KeyInfo> <CipherData> <CipherValue>I1DWG11Iz/rq+NC9C/21B3Q22J9+//JW1oCvAGs5tHrZU5+vgvm0yCmSuCWZbXva+iv9J35EQqs58pq+hwVo1hg1dffpGCBykaXGl5VX3TIGc=</CipherValue> </CipherData> </EncryptedData> </connectionStrings> <appSettings configProtectionProvider=""> <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <KeyName>Rsa Key</KeyName> </KeyInfo> <CipherData> <CipherValue>//SuBvV3D2kxhHaYGFaPuvYgsyOLf3+aYR3O/uh/+/iSANzAWoC+==</CipherValue> </CipherData> </EncryptedKey> </KeyInfo> <CipherData> <CipherValue>5W2KhG/oETLUDptobcOM52x1qD/g9A0By/wcGXI+///w=</CipherValue> </CipherData> </EncryptedData> </appSettings></configuration>是默认的缺省provider,如果想使用,可以用-prov参数指明: aspnet_regiis.exe -pef "connectionStrings" "C:\myweb\HelloService" -prov ""aspnet_regiis.exe -pef "appSettings" "C:\myweb\HelloService" -prov "" 加密配置文件后,源程序不需要做任何改动。如果要修改或添加新的配置信息,需要先解密配置文件。不论使用哪种Provider,都只能在进行加密的计算机上对配置文件进行解密。

⑶ 电子标符合性审查部分需要上传吗

电子标符合性审查部分是需要上传的。 插上公司及法人数字证书→在应用工具里面,打开建设工程技术标投标书编制系统 1.0.1.1→点击【新建】,选择该项目招标文件的技术标→点击【编辑投标文件】→点击【编辑资格审查】→【快速导入】→【点这选择】,导入相应资料→导入完后点击【导入】,【确定】→【编辑项目管理机构】→【快速导入】→【点这选择】,导入相应资料→导入完后点击【导入】,【确定】→点击【查看技术标】、【查看资审文件】→检查无误后依次点击【生成技术标】、【生成资审文件】,均保存→点击【保存】。 生成商务标:打开建设工程商务标投标书编制系统V7→在工程向导里,点击【新建投标】,选择该项目招标文件的商务清单→点击【1、导入数据】→【导入数据交换文件】→选择该项目导出的MSWT格式商务清单→导入清单范围【全部数据】→点击【确定】→点击首排的工程名称后,查看【报价汇总】总报价与导出前的宏业清单总报价是否一致→一致后点击【投标函】→填写完后,点击【2、标书检查】→ 填写完毕后点击【确定】→检查无误后,点击【数据检查合格】→点击【3、生成投标文件】,保存。


赞 (0)