Jump to content

_StringEncrypt


Recommended Posts

#include <GUIConstants.au3>

#include <string.au3>

$HOSTPWD = InputBox("Security Check", "Bitte geben Sie das Host-Passwort ein:", "", "*", 220, 130)

$HOSTPWD2 = InputBox("Security Check", "Bitte geben Sie das Host-Passwort erneut ein:", "", "*", 220, 130)

if $HOSTPWD = $HOSTPWD2 Then

$encryptedHOSTPWD = _StringEncrypt ( 1, $HOSTPWD, "encrypt" [, 5 ] )

IniWrite("pwd.ini", "Notes", "PWD", $encryptedHOSTPWD)

EndIf

What´s wrong with it?

I get this error message:

>C:\Programme\AutoIt3\SciTe\CompileAU3\CompileAU3.exe /prod /AU3Check /in "C:\Downloads\AutoIt-Skripte\Entwicklung\Test.au3"

>Running AU3Check...C:\Programme\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat

C:\Programme\AutoIt3\Include\string.au3(16,59) : ERROR: $strHex already declared as parameter

Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Programme\AutoIt3\Include\string.au3(60,112) : ERROR: $i_EncryptLevel already declared as parameter

Please help me, I am starting to learn AutoIT. :)

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

$encryptedHOSTPWD = _StringEncrypt ( 1, $HOSTPWD, "encrypt" , 5 )

<{POST_SNAPBACK}>

Thanks for your quick help, but I ´ve got still the same problem. I can even copy scripts from the examples in the internet.

Maybe there is a problem with Scite working togehter with string.au3? I don´t know.

The error message again:

>C:\Programme\AutoIt3\SciTe\CompileAU3\CompileAU3.exe /prod /AU3Check /in "C:\Downloads\AutoIt-Skripte\Encrpytion_Test.au3"

>Running AU3Check...C:\Programme\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat

C:\Programme\AutoIt3\Include\string.au3(16,59) : ERROR: $strHex already declared as parameter

Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Programme\AutoIt3\Include\string.au3(60,112) : ERROR: $i_EncryptLevel already declared as parameter

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Hello again,

I got it by myself. It was an error in the string.au3. I just downloaded the new beta Version and know the function works well.

So long,

Mega :)

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...