Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

finishx

Descriptografar Web.Config

Recommended Posts

Olá, sou novo na área e estou com um problema.


Estou estudando a plataforma e vi que existe essa criptografia parace personalizada queria saber como descriptografar.

 

Ele não mostra um provider.

 

Estou dando os seguintes comandos e mostram sucesso mas não tira o crypt

 

aspnet_regiis -pdf "connectionStrings" C:\wwwroot\site\MyCode\Website
Decrypting configuration section...
Succeeded!

 

aspnet_regiis -pdf "appSettings" C:\wwwroot\site\MyCode\Website
Decrypting configuration section...
Succeeded!

 

Já dei permissão ao usuario com os parametros pa tbm.

 

Alguém me ajuda por favor, vai ser um presentão de natal resolver isso.

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\vx.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32">
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32">
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<location path="." inheritInChildApplications="false">
<appSettings>
<add key="Cliente" value="!*!?MyCodE?!*!__W8/cbMXwN/8gWLwK4TNXhgpwhg4DYE5TWo7zFGGXDp8sl5v7mW2y1y9o0QwNYN2aTPQOAHo2vf0e7DKaLTwoYsB5jcSystZuJ1VJnfeCnzxtT4DUuMYZegNwHPKnffk6IlCX4CqVsStnKo4jtmerCUGx3t57bS08xrPIuGuMTHY=" />
<add key="Usuario" value="MyACESS" />
<add key="Acesso" value="!*!?MyCodE?!*!__ITNE+h9hChajc2QORzjdA3nbzX/goAgpLSwRgKTRpnDBo6JYyb/oN7jpr0vzBr6MDQymlFr2GSZIObPhBtFyCEh1ek++G60EP+sSIPUN5VnBmp8dIk8/xzbO9BjjNqr/jnTzUljlK+HoB7qoogBTa8HJf/adG6BmO7BrTgczTuo=" />
</appSettings>
<connectionStrings />
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=21BF3856AD364E32"/>
</handlers>
</system.webServer>
</location>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="21bf3856ad364e32"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Deixa eu só entender por que você quer descriptografar o config?

 

Cara basicamente pra fazer igual, queria entender como criptografar e descriptografar.

 

Plataforma .net é nova pra mim então to boiando em algumas coisas ... estou desenvolvendo o site de um cliente e queria usar esse metodo de criptografia, queria fazer a mesma criptografia também pra alguns dados do banco de dados.

 

Pode me ajudar KhaosDoctor

 

Abç

Compartilhar este post


Link para o post
Compartilhar em outros sites

Então, a criptografia do config não é possível. Mas existem outros meios de criptografia interna do próprio .NET, por exemplo o AES e o Hash MD5. Fiz uma biblioteca que contem essas criptografias, caso queira dar uma olhada: http://www.lotusframework.blogspot.com

 

Claro que você pode pesquisar no google

 

http://www.c-sharpcorner.com/UploadFile/Suprotim/CryptographyInDotNET11282005053700AM/CryptographyInDotNET.aspx

http://www.codeproject.com/Articles/9118/All-about-Cryptography-in-NET

Compartilhar este post


Link para o post
Compartilhar em outros sites

Então, estou dizendo sobre o ConnectionStrings que ta criptografado ...

aqui

 

 

 

<appSettings> <add key="Cliente" value="!*!?MyCodE?!*!__W8/cbMXwN/8gWLwK4TNXhgpwhg4DYE5TWo7zFGGXDp8sl5v7mW2y1y9o0QwNYN2aTPQOAHo2vf0e7DKaLTwoYsB5jcSystZuJ1VJnfeCnzxtT4DUuMYZegNwHPKnffk6IlCX4CqVsStnKo4jtmerCUGx3t57bS08xrPIuGuMTHY=" /> <add key="Usuario" value="MyACESS" /> <add key="Acesso" value="!*!?MyCodE?!*!__ITNE+h9hChajc2QORzjdA3nbzX/goAgpLSwRgKTRpnDBo6JYyb/oN7jpr0vzBr6MDQymlFr2GSZIObPhBtFyCEh1ek++G60EP+sSIPUN5VnBmp8dIk8/xzbO9BjjNqr/jnTzUljlK+HoB7qoogBTa8HJf/adG6BmO7BrTgczTuo=" /> </appSettings> <connectionStrings />

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara, não adianta você tentar descriptografar o config, ele não é para ser descriptografado, se você quer um estudo sobre criptografia você pode tentar criptografar e descriptografar outra coisa.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.