Jump to content

Password


Recommended Posts

Im writing a program which combines a few ather programs. By one of them i need to fill in a password. That password is written in a ini file. I know there is a function to set text in a closed file but i need som help changing the password because i can't fill it in directly.

it is an easy protection the writer of the program used. In the attachment is the way it is protected.

The program i am talking about is Yenc powerpost

Thanks in advange

Sorry for my englinsh i'm dutch

Pass_translation.txt

Edited by eekhoorn12
Link to comment
Share on other sites

  • Developers

Im writing a program which combines a few ather programs. By one of them i need to fill in a password. That password is written in a ini file. I know there is a function to set text in a closed file but i need som help changing the password because i can't fill it in directly.

it is an easy protection the writer of the program used. In the attachment is the way it is protected.

The program i am talking about is Yenc powerpost

Thanks in advange

Sorry for my englinsh i'm dutch

Moved to Support forum since its a support question..

You can read the password from the INI file with IniRead() and can used ControlSend() or Send() totype it in the proper field. More information available in the helpfile.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

That is what I already know, but my problem is that I don't know when I ask the user for the password, I need to convert that to what the program understands. I don't know how to convert it.

How do you ask for the program ? with an InputBox() ?

Not sure what you mean by "convert"... I don't have PowerPost installed, but does it need to be filled in somewhere in a field ?

It normally helps when you post the portion of the script that you have and got stuck on. I am now trying to guess what you exactly want to accomplish... (en dat is wat lastig).... B)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I'll try to explain it more clearly:

I want to make a program which makes rar files after that he makes par files of the rar files and after that he uses powerpost to upload it to newsgroups.

Because most people need have account with a password for newsgroups I need a place where they can fill that in. That is not the problem. That is something I can make. I use a GUI and in that I use GUICtrlCreateInput().

The text that the user puts in the input needs to be translated to something else because powerpost changes the password so not everyone can read it.

so if the user types in bij the input box QsdRg%6 as password it needs to be changed into VxiWl%6. And that must be written in the ini file which is also something I know how to do.

My problem is that I dont know how I can go from QsdRg%6 to VxiWl%6. And I don't have anything yet because I write everything in differint files and I am still figuring out how everything works whith some other programs I use to make the program.

I hope it's clear know and that someone can help me.

Link to comment
Share on other sites

How do you ask for the program ? with an InputBox() ?

Not sure what you mean by "convert"... I don't have PowerPost installed, but does it need to be filled in somewhere in a field ?

It normally helps when you post the portion of the script that you have and got stuck on. I am now trying to guess what you exactly want to accomplish... (en dat is wat lastig).... :o

Hi. Im a friend of the poster. He asked me to explain what his problem is. It's actually quite simple. Powerpost encrypts the passwords used with a simple algoritim. From what I gather he already knows the encryption algoritim key. Its something with adding a certain figure to a letter to get the encrypted one. For example; the original letter was an A, and the program should calculate the fourth letter after that. In this case making that a D as encrypted letter.

But that isn't the hard part of course. What my friend is actually trying to figure out is how he can put the example I just used into code. In other words, how to encrypt a string with a chosen encryption key (in this case the converting to another letter in the alfabet, by formula example I gave earlier).

Maybe this will help you to give him the support he asks for.

And, as a final note, its always nice to see another dutchie B)

Link to comment
Share on other sites

  • Developers

For example; the original letter was an A, and the program should calculate the fourth letter after that. In this case making that a D as encrypted letter.

-snip

In other words, how to encrypt a string with a chosen encryption key (in this case the converting to another letter in the alfabet, by formula example I gave earlier).

$inkey = "ABCDE"
$outkey = ""
For $x = 1 to StringLen($inkey)
$outkey =  $outkey & Chr(Asc(StringMid($inkey,$x,1))+3)
Next
MsgBox(0,'outkey',$outkey)

veel plezier B)

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

<OT> dit staat er ook niet ofzo he, "From: The Netherlands" B) </OT>

JdeB your script doesnt turn QsdRg%6 to VxiWl%6 does it ?

maby he wants it to only work on letters or something ?

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

I've something working now but it still has a problem.

#include <array.au3>
#include <string.au3>

$RESULT = InputBox("PASSWORD ENCODER", "ENTER PASSWORD TO ENCODE", "", "", 100, 80)
Dim $LETTERS[95]
$LETTERS[0] = "a"
$LETTERS[1] = "b"
$LETTERS[2] = "c"
$LETTERS[3] = "d"
$LETTERS[4] = "e"
$LETTERS[5] = "f"
$LETTERS[6] = "g"
$LETTERS[7] = "h"
$LETTERS[8] = "i"
$LETTERS[9] = "j"
$LETTERS[10] = "k"
$LETTERS[11] = "l"
$LETTERS[12] = "m"
$LETTERS[13] = "n"
$LETTERS[14] = "o"
$LETTERS[15] = "p"
$LETTERS[16] = "q"
$LETTERS[17] = "r"
$LETTERS[18] = "s"
$LETTERS[19] = "t"
$LETTERS[20] = "u"
$LETTERS[21] = "v"
$LETTERS[22] = "w"
$LETTERS[23] = "x"
$LETTERS[24] = "y"
$LETTERS[25] = "z"
$LETTERS[26] = "A"
$LETTERS[27] = "B"
$LETTERS[28] = "C"
$LETTERS[29] = "D"
$LETTERS[30] = "E"
$LETTERS[31] = "F"
$LETTERS[32] = "G"
$LETTERS[33] = "H"
$LETTERS[34] = "I"
$LETTERS[35] = "J"
$LETTERS[36] = "K"
$LETTERS[37] = "L"
$LETTERS[38] = "M"
$LETTERS[39] = "N"
$LETTERS[40] = "O"
$LETTERS[41] = "P"
$LETTERS[42] = "Q"
$LETTERS[43] = "R"
$LETTERS[44] = "S"
$LETTERS[45] = "T"
$LETTERS[46] = "U"
$LETTERS[47] = "V"
$LETTERS[48] = "W"
$LETTERS[49] = "X"
$LETTERS[50] = "Y"
$LETTERS[51] = "Z"
$LETTERS[52] = "!"
$LETTERS[53] = "@"
$LETTERS[54] = "#"
$LETTERS[55] = "$"
$LETTERS[56] = "%"
$LETTERS[57] = "^"
$LETTERS[58] = "&"
$LETTERS[59] = "*"
$LETTERS[60] = "("
$LETTERS[61] = ")"
$LETTERS[62] = "~"
$LETTERS[63] = "`"
$LETTERS[64] = "_"
$LETTERS[65] = "-"
$LETTERS[66] = "+"
$LETTERS[67] = "="
$LETTERS[68] = "{"
$LETTERS[69] = "["
$LETTERS[70] = "}"
$LETTERS[71] = "]"
$LETTERS[72] = ":"
$LETTERS[73] = ";"
$LETTERS[74] = ""
$LETTERS[75] = "'"
$LETTERS[76] = "\"
$LETTERS[77] = "|"
$LETTERS[78] = "<"
$LETTERS[79] = ","
$LETTERS[80] = ">"
$LETTERS[81] = "."
$LETTERS[82] = "?"
$LETTERS[83] = "/"
$LETTERS[84] = "*"
$LETTERS[85] = "1"
$LETTERS[86] = "2"
$LETTERS[87] = "3"
$LETTERS[88] = "4"
$LETTERS[89] = "5"
$LETTERS[90] = "6"
$LETTERS[91] = "7"
$LETTERS[92] = "8"
$LETTERS[93] = "9"
$LETTERS[94] = "0"

$END_RESULT = ""
For $x = 1 to StringLen($RESULT)
    $i = StringMid($RESULT,$x,1)
           If $i = Chr(97) Then
            $a_i = $LETTERS[5]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[1] Then
            $a_i = $LETTERS[6]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[2] Then
            $a_i = $LETTERS[7]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[3] Then
            $a_i = $LETTERS[8]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[4] Then
            $a_i = $LETTERS[9]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[5] Then
            $a_i = $LETTERS[10]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[6] Then
            $a_i = $LETTERS[11]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[7] Then
            $a_i = $LETTERS[12]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[8] Then
            $a_i = $LETTERS[13]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[9] Then
            $a_i = $LETTERS[14]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[10] Then
            $a_i = $LETTERS[15]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[11] Then
            $a_i = $LETTERS[16]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[12] Then
            $a_i = $LETTERS[17]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[13] Then
            $a_i = $LETTERS[18]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[14] Then
            $a_i = $LETTERS[19]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[15] Then
            $a_i = $LETTERS[20]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[16] Then
            $a_i = $LETTERS[21]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[17] Then
            $a_i = $LETTERS[22]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[18] Then
            $a_i = $LETTERS[23]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[19] Then
            $a_i = $LETTERS[24]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[20] Then
            $a_i = $LETTERS[25]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[21] Then
            $a_i = $LETTERS[68]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[22] Then
            $a_i = $LETTERS[77]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[23] Then
            $a_i = $LETTERS[70]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[24] Then
            $a_i = $LETTERS[62]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[25] Then
            $a_i = $LETTERS[45]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = Chr(65) Then
            $a_i = $LETTERS[26]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[27] Then
            $a_i = $LETTERS[27]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[28] Then
            $a_i = $LETTERS[28]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[29] Then
            $a_i = $LETTERS[29]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[30] Then
            $a_i = $LETTERS[31]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[31] Then
            $a_i = $LETTERS[34]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[32] Then
            $a_i = $LETTERS[35]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[33] Then
            $a_i = $LETTERS[36]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[34] Then
            $a_i = $LETTERS[37]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[35] Then
            $a_i = $LETTERS[38]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[36] Then
            $a_i = $LETTERS[40]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[37] Then
            $a_i = $LETTERS[41]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[38] Then
            $a_i = $LETTERS[42]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[39] Then
            $a_i = $LETTERS[43]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[40] Then
            $a_i = $LETTERS[44]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[41] Then
            $a_i = $LETTERS[46]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[42] Then
            $a_i = $LETTERS[47]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[43] Then
            $a_i = $LETTERS[48]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[44] Then
            $a_i = $LETTERS[49]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[45] Then
            $a_i = $LETTERS[50]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[46] Then
            $a_i = $LETTERS[51]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[47] Then
            $a_i = $LETTERS[69]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[48] Then
            $a_i = $LETTERS[76]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[49] Then
            $a_i = $LETTERS[71]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[50] Then
            $a_i = $LETTERS[57]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[51] Then
            $a_i = $LETTERS[64]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[52] Then
            $a_i = $LETTERS[52]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[53] Then
            $a_i = $LETTERS[53]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[54] Then
            $a_i = $LETTERS[54]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[55] Then
            $a_i = $LETTERS[55]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[56] Then
            $a_i = $LETTERS[56]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[57] Then
            $a_i = $LETTERS[57]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[58] Then
            $a_i = $LETTERS[58]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[59] Then
            $a_i = $LETTERS[59]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[60] Then
            $a_i = $LETTERS[60]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[61] Then
            $a_i = $LETTERS[61]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[62] Then
            $a_i = $LETTERS[32]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[63] Then
            $a_i = $LETTERS[4]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[64] Then
            $a_i = $LETTERS[3]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[65] Then
            $a_i = $LETTERS[65]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[66] Then
            $a_i = $LETTERS[66]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[67] Then
            $a_i = $LETTERS[67]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[68] Then
            $a_i = $LETTERS[39]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[69] Then
            $a_i = $LETTERS[63]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[70] Then
            $a_i = $LETTERS[33]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[71] Then
            $a_i = $LETTERS[1]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[72] Then
            $a_i = $LETTERS[72]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[73] Then
            $a_i = $LETTERS[73]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[75] Then
            $a_i = $LETTERS[75]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[76] Then
            $a_i = $LETTERS[0]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[77] Then
            $a_i = $LETTERS[30]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[78] Then
            $a_i = $LETTERS[78]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[79] Then
            $a_i = $LETTERS[79]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[80] Then
            $a_i = $LETTERS[80]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[81] Then
            $a_i = $LETTERS[81]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[82] Then
            $a_i = $LETTERS[82]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[83] Then
            $a_i = $LETTERS[83]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[84] Then
            $a_i = $LETTERS[84]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[85] Then
            $a_i = $LETTERS[85]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[86] Then
            $a_i = $LETTERS[86]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[87] Then
            $a_i = $LETTERS[87]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[88] Then
            $a_i = $LETTERS[88]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[89] Then
            $a_i = $LETTERS[89]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[90] Then
            $a_i = $LETTERS[90]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[91] Then
            $a_i = $LETTERS[91]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[92] Then
            $a_i = $LETTERS[92]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[93] Then
            $a_i = $LETTERS[93]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $i = $LETTERS[94] Then
            $a_i = $LETTERS[94]
            $END_RESULT = $END_RESULT & $a_i
       EndIf
Next

MsgBox(0, '', $END_RESULT)

My problem is that the program can't tell the difference between an a and A or an H and an h

Link to comment
Share on other sites

I think you will want to convert the input string into ASCII as Jdeb shows in his code. that will make increasing the character by 4 much easier. Look in the help file for Chr and ASCII Characters for more informaion.

Mike

Edit: never mind, I just realized you are using the Chr in the code, there was just so many lines it took me a while to look through it all.

Edited by MikeOsdx
Link to comment
Share on other sites

New problem. I have changed it a bit so it is in a GUI. But when I press OK it only shows the box with te number 3 nothing else. It doesn't matter what I put in the input box.

#include <array.au3>
#include <string.au3>
#include <GUIConstants.au3>

GUICreate ( "title" , 800 , 600 ) ; will create a dialog box that when displayed is centered
$RESULT = GUICtrlCreateInput("", 110, 40, 100, 20)

$Start = GUICtrlCreateButton ("OK",  60, 70, 50)
GUISetState (@SW_SHOW)

Dim $LETTERS[96]
$LETTERS[0] = "a"
$LETTERS[1] = "b"
$LETTERS[2] = "c"
$LETTERS[3] = "d"
$LETTERS[4] = "e"
$LETTERS[5] = "f"
$LETTERS[6] = "g"
$LETTERS[7] = "h"
$LETTERS[8] = "i"
$LETTERS[9] = "j"
$LETTERS[10] = "k"
$LETTERS[11] = "l"
$LETTERS[12] = "m"
$LETTERS[13] = "n"
$LETTERS[14] = "o"
$LETTERS[15] = "p"
$LETTERS[16] = "q"
$LETTERS[17] = "r"
$LETTERS[18] = "s"
$LETTERS[19] = "t"
$LETTERS[20] = "u"
$LETTERS[21] = "v"
$LETTERS[22] = "w"
$LETTERS[23] = "x"
$LETTERS[24] = "y"
$LETTERS[25] = "z"
$LETTERS[26] = "A"
$LETTERS[27] = "B"
$LETTERS[28] = "C"
$LETTERS[29] = "D"
$LETTERS[30] = "E"
$LETTERS[31] = "F"
$LETTERS[32] = "G"
$LETTERS[33] = "H"
$LETTERS[34] = "I"
$LETTERS[35] = "J"
$LETTERS[36] = "K"
$LETTERS[37] = "L"
$LETTERS[38] = "M"
$LETTERS[39] = "N"
$LETTERS[40] = "O"
$LETTERS[41] = "P"
$LETTERS[42] = "Q"
$LETTERS[43] = "R"
$LETTERS[44] = "S"
$LETTERS[45] = "T"
$LETTERS[46] = "U"
$LETTERS[47] = "V"
$LETTERS[48] = "W"
$LETTERS[49] = "X"
$LETTERS[50] = "Y"
$LETTERS[51] = "Z"
$LETTERS[52] = "!"
$LETTERS[53] = "@"
$LETTERS[54] = "#"
$LETTERS[55] = "$"
$LETTERS[56] = "%"
$LETTERS[57] = "^"
$LETTERS[58] = "&"
$LETTERS[59] = "*"
$LETTERS[60] = "("
$LETTERS[61] = ")"
$LETTERS[62] = "~"
$LETTERS[63] = "`"
$LETTERS[64] = "_"
$LETTERS[65] = "-"
$LETTERS[66] = "+"
$LETTERS[67] = "="
$LETTERS[68] = "{"
$LETTERS[69] = "["
$LETTERS[70] = "}"
$LETTERS[71] = "]"
$LETTERS[72] = ":"
$LETTERS[73] = ";"
$LETTERS[74] = chr(34)
$LETTERS[75] = "'"
$LETTERS[76] = "\"
$LETTERS[77] = "|"
$LETTERS[78] = "<"
$LETTERS[79] = ","
$LETTERS[80] = ">"
$LETTERS[81] = "."
$LETTERS[82] = "?"
$LETTERS[83] = "/"
$LETTERS[84] = "*"
$LETTERS[85] = "1"
$LETTERS[86] = "2"
$LETTERS[87] = "3"
$LETTERS[88] = "4"
$LETTERS[89] = "5"
$LETTERS[90] = "6"
$LETTERS[91] = "7"
$LETTERS[92] = "8"
$LETTERS[93] = "9"
$LETTERS[94] = "0"
$LETTERS[95] = chr(32)

$END_RESULT = ""
For $x = 1 to StringLen($RESULT)
    $i = StringMid($RESULT,$x,1)
    $a = Asc ($i)
           If $a = 97 Then
            $a_i = $LETTERS[5]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 98 Then
            $a_i = $LETTERS[6]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 99 Then
            $a_i = $LETTERS[7]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 100 Then
            $a_i = $LETTERS[8]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 101 Then
            $a_i = $LETTERS[9]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 102 Then
            $a_i = $LETTERS[10]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 103 Then
            $a_i = $LETTERS[11]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 104 Then
            $a_i = $LETTERS[12]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 105 Then
            $a_i = $LETTERS[13]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 106 Then
            $a_i = $LETTERS[14]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 107 Then
            $a_i = $LETTERS[15]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 108 Then
            $a_i = $LETTERS[16]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 109 Then
            $a_i = $LETTERS[17]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 110 Then
            $a_i = $LETTERS[18]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 111 Then
            $a_i = $LETTERS[19]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 112 Then
            $a_i = $LETTERS[20]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 113 Then
            $a_i = $LETTERS[21]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 114 Then
            $a_i = $LETTERS[22]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 115 Then
            $a_i = $LETTERS[23]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 116 Then
            $a_i = $LETTERS[24]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 117 Then
            $a_i = $LETTERS[25]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 118 Then
            $a_i = $LETTERS[68]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 119 Then
            $a_i = $LETTERS[77]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 120 Then
            $a_i = $LETTERS[70]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 121 Then
            $a_i = $LETTERS[62]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 122 Then
            $a_i = $LETTERS[45]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 65 Then
            $a_i = $LETTERS[26]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 66 Then
            $a_i = $LETTERS[27]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 67 Then
            $a_i = $LETTERS[28]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 68 Then
            $a_i = $LETTERS[29]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 69 Then
            $a_i = $LETTERS[31]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 70 Then
            $a_i = $LETTERS[34]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 71 Then
            $a_i = $LETTERS[35]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 72 Then
            $a_i = $LETTERS[36]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 73 Then
            $a_i = $LETTERS[37]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 74 Then
            $a_i = $LETTERS[38]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 75 Then
            $a_i = $LETTERS[40]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 76 Then
            $a_i = $LETTERS[41]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 77 Then
            $a_i = $LETTERS[42]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 78 Then
            $a_i = $LETTERS[43]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 79 Then
            $a_i = $LETTERS[44]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 80 Then
            $a_i = $LETTERS[46]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 81 Then
            $a_i = $LETTERS[47]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 82 Then
            $a_i = $LETTERS[48]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 83 Then
            $a_i = $LETTERS[49]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 84 Then
            $a_i = $LETTERS[50]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 85 Then
            $a_i = $LETTERS[51]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 86 Then
            $a_i = $LETTERS[69]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 87 Then
            $a_i = $LETTERS[76]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 88 Then
            $a_i = $LETTERS[71]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 89 Then
            $a_i = $LETTERS[57]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 90 Then
            $a_i = $LETTERS[64]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 33 Then
            $a_i = $LETTERS[52]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 64 Then
            $a_i = $LETTERS[53]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 35 Then
            $a_i = $LETTERS[54]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 36 Then
            $a_i = $LETTERS[55]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 37 Then
            $a_i = $LETTERS[56]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 94 Then
            $a_i = $LETTERS[57]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 38 Then
            $a_i = $LETTERS[58]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 42 Then
            $a_i = $LETTERS[59]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 40 Then
            $a_i = $LETTERS[60]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 41 Then
            $a_i = $LETTERS[61]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 126 Then
            $a_i = $LETTERS[32]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 96 Then
            $a_i = $LETTERS[4]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 95 Then
            $a_i = $LETTERS[3]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 45 Then
            $a_i = $LETTERS[65]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 43 Then
            $a_i = $LETTERS[66]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 61 Then
            $a_i = $LETTERS[67]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 123 Then
            $a_i = $LETTERS[39]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 91 Then
            $a_i = $LETTERS[63]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 125 Then
            $a_i = $LETTERS[33]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 93 Then
            $a_i = $LETTERS[1]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 58 Then
            $a_i = $LETTERS[72]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 59 Then
            $a_i = $LETTERS[73]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 96 Then
            $a_i = $LETTERS[75]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 92 Then
            $a_i = $LETTERS[0]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 124 Then
            $a_i = $LETTERS[30]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 60 Then
            $a_i = $LETTERS[78]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 44 Then
            $a_i = $LETTERS[79]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 62 Then
            $a_i = $LETTERS[80]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 46 Then
            $a_i = $LETTERS[81]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 63 Then
            $a_i = $LETTERS[82]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 47 Then
            $a_i = $LETTERS[83]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 42 Then
            $a_i = $LETTERS[84]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 49 Then
            $a_i = $LETTERS[85]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 50 Then
            $a_i = $LETTERS[86]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 51 Then
            $a_i = $LETTERS[87]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 52 Then
            $a_i = $LETTERS[88]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 53 Then
            $a_i = $LETTERS[89]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 54 Then
            $a_i = $LETTERS[90]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 55 Then
            $a_i = $LETTERS[91]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 56 Then
            $a_i = $LETTERS[92]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 57 Then
            $a_i = $LETTERS[93]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 48 Then
            $a_i = $LETTERS[94]
            $END_RESULT = $END_RESULT & $a_i
       ElseIf $a = 32 Then
            $a_i = $LETTERS[95]
            $END_RESULT = $END_RESULT & $a_i
       EndIf
Next

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $Start
            MsgBox(0, '', $END_RESULT)
    EndSelect
Wend
Link to comment
Share on other sites

Why not just do (Psuedocode following):

If (Asc($x) >= 65 AND Asc($x) < 90) Or (Asc($x) >=97 AND Asc($x) <= 122) Then
$result = $result &  Chr(Asc($x)+4)
Else
$result = $x
EndIf

The If statement checks to see if it is uppercase or lowercase letters (respectively), if they are, it takes the character 4 spaces away from it, else it copies the character.

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to comment
Share on other sites

Why not just do (Psuedocode following):

CODE

If (Asc($x) >= 65 AND Asc($x) < 90) Or (Asc($x) >=97 AND Asc($x) <= 122) Then
$result = $result &  Chr(Asc($x)+4)
Else
$result = $x
EndIf

The If statement checks to see if it is uppercase or lowercase letters (respectively), if they are, it takes the character 4 spaces away from it, else it copies the character.

The problem is that it isn't always the fourth letter after it sometimes it's the same and other times it can be the 10th letter after it
Link to comment
Share on other sites

I've already done that. I just typed each letter on my keyboard in the field were to put the password and then I checked the ini file so I know exactly how the password is changed. But for my program I would like to do it myself

so I don't have to start the program and do it with keystrokes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...