摘要:
密码的故事
2002 年 3 月 14 日
本文是由一个问题引出的。我需要一种将密码保存在加密文件中的方法,因为我需要记住许多密码,但记忆力却已大不如前。我知道有许多商用工具能够做到这一点,但我感到学习 .net 中的一项新技术真的很有好处。
我用 visual basic® .net 完成了一个简单而完整的程序,用于加密和解密文件,从中学到了许多知识。既然加密对于多......
摘要:
以前解决gb2312/big5实时转换的做法一般是修改response.contentencoding
string switchlanguage(string strlanguage){
if(strlanguage.startswith("zh-cn")){
response.contentencoding=encoding.getencoding(93......
将字符串中的数字和字符分离的技术例如(the9city)分解成(thecity)和9
原始字符串
string completestring = "the9 city";
转换完成的字符串
string stringval = "the city";
int numericval = 9;
aspx文件
<%@ page language="c#" codebehind="stringparser.aspx.cs" autoeventwireup="false" inherits="howto._20020221.stringparser" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
<head>
<title>stringparser</title>
<meta name="generator" content="microsoft visual studio 7.0">
<meta name="code_language" content="c#">
<meta name="vs_defaultclientscript" content="javascript">
<meta name="vs_targetschema" content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body>
<form id="stringparser" method="post" runat="server">
<p>
<strong>enter a alphanumeric string:</strong>
<asp:requiredfieldvalidator id="requiredfieldvalidator1" runat="server"
&nb...
下一页 摘要:
decodes a string encoded for http transmission and sent to the server in a url.
overload list
url-decodes a string and returns the decoded string.
[visual basic] overloads public function ur......