home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / fileencrypt.aspx < prev    next >
Encoding:
Text File  |  2000-06-09  |  1.2 KB  |  39 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <%
  5.     runsample = Server.MapPath("/quickstart/howto/samples/cryptography/fileencrypt/")
  6.     viewsource = "/quickstart/howto/samples/cryptography/fileencrypt/encrypt.src"
  7.     icon = "/quickstart/images/console.gif"
  8.     caption = "fileencrypt.exe"
  9. %>
  10. <h4>How Do I...encrypt and decrypt a file?</h4>
  11.  
  12. <div class="indent" style="width:660">
  13. <p>This sample illustrates how to encrypt and decrypt a file using a passphrase and DES encryption. Two
  14. text files are created by this sample: decrypted.txt and encrypted.txt.</p>
  15. </div>
  16.  
  17. <h4>Example</h4>
  18.  
  19. <p>
  20. <div class="indent">
  21. <a target="_blank" href="<%=runsample%>">
  22. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  23. </a>
  24. <div class="caption"><%=caption%></div><br>
  25. [<a target="_blank" href="<%=runsample%>">View Sample</a>] | 
  26. [<a target="_blank" href="http://localhost/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
  27. </div>
  28.  
  29. <h4>Source Code</h4>
  30.  
  31. <div class="code">
  32. <xmp>
  33. <!-- #include virtual="/QuickStart/HowTo/samples/Cryptography/FileEncrypt/Encrypt.cs" -->
  34.  
  35. </xmp>
  36. </div>
  37.  
  38. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  39.