Jump to content

Crypto UDF


Ejoc
 Share

Recommended Posts

Okay,

One question is running even your demo of Crypto with

Dllstruct supposed to kick up the following in Autoit4Scite?

when compiled the scripts run, im just worried that at some

point they may fail due to concerns by Autoit4Scite error checking

p.s. i have even tried adding #include <date.au3> to your demo script

:\Program Files\AutoIt3\Include\date.au3(1159,89) : ERROR: DllStructCreate(): undefined function.
    $SYSTEMTIME = DllStructCreate("ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort")
                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\date.au3(1160,45) : ERROR: DllStructGetPtr(): undefined function.
    $lpSystemTime = DllStructGetPtr($SYSTEMTIME)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\date.au3(1170,40) : ERROR: DllStructSetData(): undefined function.
    DllStructSetData($SYSTEMTIME, 4, $iDay)
        ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(136,21) : ERROR: DllStructDelete(): undefined function.
        DllStructDelete($p)
                 ~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(182,29) : ERROR: DllStructGetSize(): undefined function.
    $iLen   = DllStructGetSize($p)
     ~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(190,54) : ERROR: DllStructGetData(): undefined function.
    If $p[0][2] = 2 AND $p[2][0] = DllStructGetData($p,2)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Link to comment
Share on other sites

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Okay,

One question is running even your demo of Crypto with

Dllstruct supposed to kick up the following in Autoit4Scite?

when compiled the scripts run, im just worried that at some

point they may fail due to concerns by Autoit4Scite error checking

p.s. i have even tried adding #include <date.au3> to your demo script

:\Program Files\AutoIt3\Include\date.au3(1159,89) : ERROR: DllStructCreate(): undefined function.
    $SYSTEMTIME = DllStructCreate("ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort")
                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\date.au3(1160,45) : ERROR: DllStructGetPtr(): undefined function.
    $lpSystemTime = DllStructGetPtr($SYSTEMTIME)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\date.au3(1170,40) : ERROR: DllStructSetData(): undefined function.
    DllStructSetData($SYSTEMTIME, 4, $iDay)
        ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(136,21) : ERROR: DllStructDelete(): undefined function.
        DllStructDelete($p)
                 ~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(182,29) : ERROR: DllStructGetSize(): undefined function.
    $iLen   = DllStructGetSize($p)
     ~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\DllStruct.au3(190,54) : ERROR: DllStructGetData(): undefined function.
    If $p[0][2] = 2 AND $p[2][0] = DllStructGetData($p,2)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Dll functions I believe are beta. That being said SciTE4AutoIt3 would need the beta definitions.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

  • 5 months later...

I know this is an old topic but i have one question.

_EncryptString uses RSA as you said Ejoc. If so then there should be a private key for decrypting and a public key for encrypting.

Would be nice if there where a function which returns the public RSA-key for a given private key.

greets

Sundance

Edited by Sundance
Link to comment
Share on other sites

Hi Zedna,

you mean the problem with DllStructDelete($p) ? Just rename ist to $p = 0

And the problem with the continuation character _. Just rename ,_ to {whitespace}_.

For me it runs fine.

greets

Sundance

Of course I know where is the problem, exactly as you said these two changed syntax things.

But there are almost hundreds of these errors in this.

So I'm asking if someone did it before me, because I'm too lazy for replacing such amount of changes :)

Hi.

Link to comment
Share on other sites

  • 4 months later...

Hello,

I can't get the _encryptsting and the _decryptstring functions working under windows 2000 but it works great under windows XP

the problem is when I run those functions: I get the following error window:

The Encryptstringtofile works fine undew windows 2000

_getLastErrorMessage

CryptStringToBinary(1):

The specified procedure could not be found

Any Help will be Appreciated

Thanks,

Link to comment
Share on other sites

  • 6 months later...

Hello,

I can't get the _encryptsting and the _decryptstring functions working under windows 2000 but it works great under windows XP

the problem is when I run those functions: I get the following error window:

The Encryptstringtofile works fine undew windows 2000

_getLastErrorMessage

CryptStringToBinary(1):

The specified procedure could not be found

Any Help will be Appreciated

Thanks,

Hello dreadwolf2k,

I am facing the exat problem. Do you know how to fix it?

Thanks a lot.

Regards,

Link to comment
Share on other sites

Using the newest version of AutoIt (and the newest beta as of last week) I am still getting this error:

C:\Users\<USERID>\Desktop\crypto.au3(37,26) : ERROR: DllStructDelete(): undefined function.

I thought this function was in the newest version?

Link to comment
Share on other sites

Using the newest version of AutoIt (and the newest beta as of last week) I am still getting this error:

C:\Users\<USERID>\Desktop\crypto.au3(37,26) : ERROR: DllStructDelete(): undefined function.

I thought this function was in the newest version?

Nah, not exactly.

07th December, 2005 - v3.1.1.93 (beta)

Removed : DLLStructDelete($Struct) use $Struct=0 even nothing if it is local.

:whistle:

Edit : Newest beta as of last week ? If by last week you mean yesterday, then yes you are correct.

Edited by Helge
Link to comment
Share on other sites

  • 4 weeks later...

I must be overlooking something but I'm getting an error when I try to run the code compiled. It works fine as an AutoIt script file until I compile it.

I am using the 3.2.2.2 beta version on a Windows XP Pro machine.

I have placed both the "dllstruct.au3" & "crypto.au3" into the beta's include folder.

Error Info:

$ret = DllCall( "Advapi.dll", "int", "CryptDestroyKey", "int", $hkey, "int", 0 )

Error: AutoIt has detected the stack has become corrupt.

Any ideas as to what is causing this error?

Link to comment
Share on other sites

Hi,

CryptStringToBinary is not supported under Win2k or 2003, which breaks _EncryptString, but apparently there are some workarounds for the technically savvy, which I'm not. It would be nice if someone who knew what they were doing could fix this.

Also, the windows crypto api supports generating public/private key pairs in various ways, which as far as I can tell is the heart of RSA, but I can't seem to find any way to access these functions via crypto.au3.

Are you limited to just distributing the password that you've used to encrypt something via this UDF or am I missing something?

Perhaps someone could point me to a viable solution to my problem using existing autoit crypto that works on all platforms.

I've got a client/server application where the client authenticates and receives status codes, and I'd like make spoofing more difficult and SSL is apparently not an option with Autoit.

My thought was to duplicate the Alice/Bob scenario with my client/server, generating an RSA key pair for each and using each respective public key to encrypt the traffic.

I can't figure out how to generate these keys via crypto.au3.

Any suggestions?

Link to comment
Share on other sites

  • 9 months later...

Hi Ejoc,

Are these UDFs obsolete? I have installed Crypto.au3 and DllStruct.au3, and tried to use yuor second example to verify the code, but it bombed out with the following error message in DllStruct.au3:

CODE
>Running AU3Check (1.54.10.0) from:C:\Program Files\AutoIt3

C:\Program Files\AutoIt3\Include\DllStruct.au3(132,52) : ERROR: syntax error

$ret = DllCall("kernel32.dll","int","CreateFile",_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(133,26) : ERROR: syntax error

"str",$szFileName,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(134,25) : ERROR: syntax error

"int",0x80000000,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(135,16) : ERROR: syntax error

"int",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(136,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(137,16) : ERROR: syntax error

"int",3,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(138,19) : ERROR: syntax error

"int",0x80,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(148,50) : ERROR: syntax error

$ret = DllCall("kernel32.dll","int","ReadFile",_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(149,19) : ERROR: syntax error

"int",$file,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(150,33) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(151,19) : ERROR: syntax error

"int",$iLen,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(152,35) : ERROR: syntax error

"ptr",DllStructGetPtr($p,2),_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(207,52) : ERROR: syntax error

$ret = DllCall("kernel32.dll","int","CreateFile",_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(208,26) : ERROR: syntax error

"str",$szFileName,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(209,25) : ERROR: syntax error

"int",0x40000000,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(210,16) : ERROR: syntax error

"int",1,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(211,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(212,16) : ERROR: syntax error

"int",4,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(213,19) : ERROR: syntax error

"int",0x80,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(222,51) : ERROR: syntax error

$ret = DllCall("kernel32.dll","int","WriteFile",_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(223,19) : ERROR: syntax error

"int",$file,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(224,33) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(225,19) : ERROR: syntax error

"int",$iLen,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(226,19) : ERROR: syntax error

"int_ptr",0,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(279,55) : ERROR: syntax error

$ret = DllCall("kernel32.dll","int","FormatMessage",_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(280,42) : ERROR: syntax error

"int",$FORMAT_MESSAGE_FROM_SYSTEM,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(281,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(282,22) : ERROR: syntax error

"int",$ret[0],_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(283,16) : ERROR: syntax error

"int",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\DllStruct.au3(284,34) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(285,19) : ERROR: syntax error

"int",4096,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(33,60) : ERROR: syntax error

$ret = DllCall("Crypt32.dll","int","CryptStringToBinary",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(34,24) : ERROR: syntax error

"str",$szString,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(35,35) : ERROR: syntax error

"int",StringLen($szString),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(36,35) : ERROR: syntax error

"int",$CRYPT_STRING_BASE64,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(37,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(38,41) : ERROR: syntax error

"ptr",DllStructGetPtr($binLen,1),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(39,41) : ERROR: syntax error

"ptr",DllStructGetPtr($binLen,2),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(58,60) : ERROR: syntax error

$ret = DllCall("Crypt32.dll","int","CryptStringToBinary",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(59,24) : ERROR: syntax error

"str",$szString,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(60,35) : ERROR: syntax error

"int",StringLen($szString),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(61,35) : ERROR: syntax error

"int",$CRYPT_STRING_BASE64,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(62,34) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(63,41) : ERROR: syntax error

"ptr",DllStructGetPtr($binLen,1),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(64,41) : ERROR: syntax error

"ptr",DllStructGetPtr($binLen,2),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(343,60) : ERROR: syntax error

$ret = DllCall("Crypt32.dll","int","CryptBinaryToString",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(344,24) : ERROR: syntax error

"ptr",$lpSource,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(345,20) : ERROR: syntax error

"int",$iLen,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(346,35) : ERROR: syntax error

"int",$CRYPT_STRING_BASE64,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(347,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(365,60) : ERROR: syntax error

$ret = DllCall("Crypt32.dll","int","CryptBinaryToString",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(366,24) : ERROR: syntax error

"ptr",$lpSource,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(367,20) : ERROR: syntax error

"int",$iLen,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(368,35) : ERROR: syntax error

"int",$CRYPT_STRING_BASE64,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(369,34) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(403,54) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptEncrypt",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(404,20) : ERROR: syntax error

"int",$hKey,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(405,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(406,16) : ERROR: syntax error

"int",1,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(407,16) : ERROR: syntax error

"int",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(408,24) : ERROR: syntax error

"ptr",$lpSource,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(409,34) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(431,57) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptDestroyKey",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(432,20) : ERROR: syntax error

"int",$hKey,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(456,56) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptDeriveKey",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(457,26) : ERROR: syntax error

"int",$hCryptProv,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(458,24) : ERROR: syntax error

"int",$CALG_RC4,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(459,21) : ERROR: syntax error

"int",$hHash,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(460,25) : ERROR: syntax error

"int",0x00800000,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(484,55) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptHashData",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(485,21) : ERROR: syntax error

"int",$hHash,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(486,24) : ERROR: syntax error

"str",$szString,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(487,35) : ERROR: syntax error

"int",StringLen($szString),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(504,58) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptDestroyHash",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(525,57) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptCreateHash",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(526,26) : ERROR: syntax error

"int",$hCryptProv,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(527,24) : ERROR: syntax error

"int",$CALG_MD5,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(528,16) : ERROR: syntax error

"int",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(529,16) : ERROR: syntax error

"int",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(551,61) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptReleaseContext",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(552,26) : ERROR: syntax error

"int",$hCryptProv,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(573,61) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptAcquireContext",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(574,34) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(575,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(576,16) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(577,29) : ERROR: syntax error

"int",$PROV_RSA_FULL,_

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

C:\Program Files\AutoIt3\Include\crypto.au3(581,62) : ERROR: syntax error

$ret = DllCall("Advapi32.dll","int","CryptAcquireContext",_

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

C:\Program Files\AutoIt3\Include\crypto.au3(582,35) : ERROR: syntax error

"ptr",DllStructGetPtr($p),_

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

C:\Program Files\AutoIt3\Include\crypto.au3(583,17) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(584,17) : ERROR: syntax error

"ptr",0,_

~~~~~~~~~^

C:\Program Files\AutoIt3\Include\crypto.au3(585,30) : ERROR: syntax error

"int",$PROV_RSA_FULL,_

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

C:\Program Files\AutoIt3\Include\DllStruct.au3(143,21) : ERROR: DllStructDelete(): undefined function.

DllStructDelete($p)

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

E:\Documents\Programming, source code\Encryptest.au3 - 92 error(s), 0 warning(s)

!>21:59:25 AU3Check ended.rc:2

Could you help me with this? I have not modify the original UDF...

Thanks a lot: Viktor

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