返回首页


{S0}简介
铁路护栏网的密码是你有一些joejoe这样的文字和你分割两行:

j e o

o j e

现在你结合的两条线,并得到:jeooje编码
在学校里,我已经学会了如何编码成的铁栅栏密码的东西。具体方法如下:{C}解码
这是如何解码的东西:
/// <summary>

/// Decodes stuff into plain text

/// </summary>

/// <param name="input">The string to decode</param>

/// <returns>The decoded result</returns>

public static string DeCode(string input)

{

    int lnl = (int)Math.Round((decimal)input.Length / 2);

    //Write Strings

    char[] ln1, ln2;

    ln1 = input.Substring(0, lnl).ToCharArray();

    ln2 = input.Substring(lnl).ToCharArray();

#if DEBUG

    Debug.WriteLine("Line 1: " + input.Substring(0, lnl));

    Debug.WriteLine("Line 2: " + input.Substring(lnl, input.Length - lnl));

#endif

    //Writen strings, now seperate into one

    bool top = true;

    string output = "";

    int x, topx, botx;

    x = 1; topx = 0; botx = 0;



    while( x != input.Length + 1)

    {

        if(top == true)

        {

            if(topx > ln1.Length - 1)

            {

                return output;

            }

            output += ln1[topx]; topx += 1; top = false;

#if DEBUG

            Debug.WriteLine("topx: " + topx + " ln1 length: " + ln1.Length);

            #endif

        }

        else

        {

            output += ln2[botx]; botx += 1; top = true;

        }

        x++;

    }

    return output;

}

回答

评论会员:Andrei7 时间:2011/12/07
你能转移到C + +编程language.Because,我想写彗星programming.It"非常复杂,对me.I不明白anything.Please帮助..
评论会员:joejoeiscool 时间:2011/12/07
!我很遗憾,我不知道C很好
评论会员:Andrei7 时间:2011/12/07
你写哪一种语言?你能详细解释,我可以分析it.And老师解释你能为我做吗?
评论会员:joejoeiscool 时间:2011/12/07
我用的C#。我是这样做的另一个项目,对密码进行加密。
评论会员:Andrei7 时间:2011/12/07
两天,我试图找到铁围栏编码器/解码器源Code.I要写入it.But字符串和Arrays.So我不知道,我没有写it.Please帮助me.I等待您重播要learn.I"乔
IMG SRC ="/脚本/论坛/图片/ smiley_cry.gif"ALIGN ="顶"ALT ="鬼泣|:(("/>
评论会员:游客 时间:2011/12/07
joejoeiscool,我必须这样做,我有7days.And
我要放了一个解码器,所以你可以使用
评论会员:贾森麦克伯尼 时间:2011/12/07
一个体面的开始,这似乎是一个进展中的工作,你可能要讨论的吞吐量密码;实现净Symertric哈希接口;讨论背后的密码理论等


你只能年轻一次。但是你可以永远不成熟。
- 戴夫巴里
评论会员:joejoeiscool 时间:2011/12/07
这是什么:
贾森麦克伯尼写道:实现净Symertric哈希接口

此外,我不知道的理论,只是它是一个不同的代码,而不是MD5和东西。
评论会员:joejoeiscool 时间:2011/12/07
不知道如何实施ICryptoTransform的,方法是如此复杂!