home *** CD-ROM | disk | FTP | other *** search
-
- <!-- #include virtual="/quickstart/howto/include/header.inc" -->
-
- <%
- runsample = Server.MapPath("/quickstart/howto/samples/cryptography/fileencrypt/")
- viewsource = "/quickstart/howto/samples/cryptography/fileencrypt/encrypt.src"
- icon = "/quickstart/images/console.gif"
- caption = "fileencrypt.exe"
- %>
- <h4>How Do I...encrypt and decrypt a file?</h4>
-
- <div class="indent" style="width:660">
- <p>This sample illustrates how to encrypt and decrypt a file using a passphrase and DES encryption. Two
- text files are created by this sample: decrypted.txt and encrypted.txt.</p>
- </div>
-
- <h4>Example</h4>
-
- <p>
- <div class="indent">
- <a target="_blank" href="<%=runsample%>">
- <img style="border-color:black" border=1 src="<%=icon%>"><br>
- </a>
- <div class="caption"><%=caption%></div><br>
- [<a target="_blank" href="<%=runsample%>">View Sample</a>] |
- [<a target="_blank" href="http://localhost/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
- </div>
-
- <h4>Source Code</h4>
-
- <div class="code">
- <xmp>
- <!-- #include virtual="/QuickStart/HowTo/samples/Cryptography/FileEncrypt/Encrypt.cs" -->
-
- </xmp>
- </div>
-
- <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
-