dim Nd,i,pwd
pwd="xxxxx"
for i = 1 to len(pwd)
Nd = Nd + chrw(ascw(mid(pwd,i,1)) + ascw(right(cstr(i*i),i)))
next
pwd="xxxxx"
for i = 1 to len(pwd)
Nd = Nd + chrw(ascw(mid(pwd,i,1)) + ascw(right(cstr(i*i),i)))
next
解决方案 »
- lumisoft 通过IMAP_CLIENT接收邮件的时候怎么才能不改变未读状态
- net.gethtml 为什么说没有命名空间呢
- 类型转换的问题
- 求正则,取内容
- 请问怎样让一个链接随机生成一串KEY,复制过去别人无法打开?
- 急!急!求助:.net中如何实现给日文汉字注假名?高分.
- 这个Split怎么分?
- 正好整理了一下,自己做了个连接数据库的组件,支持SQLSERVER,ACCESS,ORACLE,FoxPro,MySql,IBM DB2,DBF等数据库,并且支持事务处理
- 哪有c#完全手册?
- 套接字和TCP协议在应用上有什么区别各有什么优缺点?
- xtragrid的中,点击每列下的黑箭头,会出现一个查找的条件窗口,我想问能不能把这个窗口改成中文的.
- 用C#开发数据库方面的软件。。
object Nd;
object i;
object pwd;
pwd = "xxxxx";
for (int i = 1; i <= len(pwd); i++) {
Nd = Nd + chrw(ascw(mid(pwd, i, 1)) + ascw(right(System.Convert.ToString(i * i), i)));
}
就是pwd应该是string pwd
还有ascw这些都是VB中特有的。在C#中没有
string pwd="xxxxx";
string nd="";
for(int i=0;i<pwd.ToString().Length;i++)
{
nd+=pwd.ToString().mid(i,1)+i.ToString().Right(i*i,i);
}
int i;
pwd="xxxxx"
for (i = 1;i<=pwd.Length;i++)
Nd = Nd + chrw(ascw(pwd.Substring(i,1)) + ascw(right(Convert.ToString(i * i), i)));
pwd ="xxxxx";
for(int i=1; i<pwd.Length; i++)
{
Nd=Nd+...
}
string nd="";
for(int i=0;i<pwd.Length;i++)
{
nd+=pwd.ToString().mid(i,1)+i.ToString().Right(i*i,i);
}
string nd="";
for(int i=0;i<pwd.Length;i++)
{
nd+=pwd.ToString().mid(i,1)+i.ToString().Right(i*i,i);
}
string pwd;
pwd = "xxxxx";
Nd="";
for (int i = 0; i <= pwd.Length-1 ; i++)
{
Nd += Microsoft.VisualBasic.Strings.ChrW(Microsoft.VisualBasic.Strings.AscW(pwd.Substring( i, 1)) + Microsoft.VisualBasic.Strings.AscW(System.Convert.ToString(i * i).PadRight( i)));
}
Console.WriteLine(Nd);