Jump to content

Recommended Posts

Posted

heya,

How does one make a configuration file?

What parameter's must it include?

How do u make u program search for those paramenter's?

cheers C.W

C.Wnew rules:1.dont use plz in a post or title use please instead2.always use help file as it is now muchly over rated3. dont think where not watching u4.please wait 24 hours after last post ot bump XD i use to make that mistake

Posted

thnx so in my code i would jsut use a converter to change the password to a md5 hash or something ?

C.Wnew rules:1.dont use plz in a post or title use please instead2.always use help file as it is now muchly over rated3. dont think where not watching u4.please wait 24 hours after last post ot bump XD i use to make that mistake

Posted (edited)

You could use _StringEncrypt. Also you could choose to store this data in the registry so you always know where it is, even when the user moves the application.

Something like this:

#include<String.au3>
$Password = "p@ssw0rd"
$PrivatePass = "mykey123"

RegWrite("HKLM\SOFTWARE\MyApp")
RegWrite("HKLM\SOFTWARE\MyApp\Data")
RegWrite( "HKLM\SOFTWARE\MyApp\Data", "Password", "REG_SZ", _StringEncrypt( 1, $Password, $PrivatePass ) )

$getpass = RegRead( "HKLM\SOFTWARE\MyApp\Data", "Password" )
MsgBox(0, "TEST READ PASS", _StringEncrypt( 0, $getpass, $PrivatePass ))

Keep in mind that having a private key in your autoit script like this is not secure, but I do not believe that it is possible to fully secure an au3 script in any manner, you can just make it more difficult.

Edited by danwilli
Posted

how do i use your code?

C.Wnew rules:1.dont use plz in a post or title use please instead2.always use help file as it is now muchly over rated3. dont think where not watching u4.please wait 24 hours after last post ot bump XD i use to make that mistake

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
  • Recently Browsing   0 members

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