Skip to content

Instantly share code, notes, and snippets.

@DanielRTeixeira
Forked from nicholasmckinney/web.config
Created November 2, 2017 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielRTeixeira/1031d1a52f8216367ef3188a61d5716c to your computer and use it in GitHub Desktop.
Save DanielRTeixeira/1031d1a52f8216367ef3188a61d5716c to your computer and use it in GitHub Desktop.
Encrypt Random Shit with aspnet_regiis.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- Encrypt Element -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pef "secretStuff" "C:\Tools" -->
<!-- Decrypt Element -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pdf "secretStuff" "C:\Tools" -->
<!-- See https://msdn.microsoft.com/en-us/library/2w117ede.aspx -->
<!-- Example by @subTee -->
<connectionStrings>
<add name="constr" connectionString="blah" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<secretStuff>
<!-- Random stuffblahdeblahblah -->
<element name="RandomShitMaybeBase64encodedThings" />
</secretStuff>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment