d4rk Posted July 24, 2008 Share Posted July 24, 2008 Hello every1, I'm having trouble with _StringEncrypt(), i've look in the UDFs document but learn nothing, here is my code if FileExists(@ScriptDir & "\Confi\" & "Confi.ini") Then $InputPass=InputBox("enter","","","|",100,100) $About=_StringEncrypt(2,IniRead(@ScriptDir & "\Confi\" & "Confi.ini","Security","EncryptP","Error : Value not found"),"d4rkPC",1) Select Case $About=$InputPass MsgBox(64,"","Success") case Else MsgBox(64,"","Wrong") EndSelect I enter the right password but it always give me a "Wrong", can some1 tell me why Thanks [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
James Posted July 24, 2008 Share Posted July 24, 2008 Hello every1, I'm having trouble with _StringEncrypt(), i've look in the UDFs document but learn nothing, here is my code if FileExists(@ScriptDir & "\Confi\" & "Confi.ini") Then $InputPass=InputBox("enter","","","|",100,100) $About=_StringEncrypt(2,IniRead(@ScriptDir & "\Confi\" & "Confi.ini","Security","EncryptP","Error : Value not found"),"d4rkPC",1) Select Case $About=$InputPass MsgBox(64,"","Success") case Else MsgBox(64,"","Wrong") EndSelect I enter the right password but it always give me a "Wrong", can some1 tell me why Thanks_StringEncrypt requires the pars 1 and 0. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 The first parameter is wrong. It should be 1 to encrypt, 0 to decrypt. Also, as this is a password, it should be case sensitive, so use == over =. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Andreik Posted July 24, 2008 Share Posted July 24, 2008 RC4 it`s more simple to use than _StringEncrypt(). When the words fail... music speaks. Link to comment Share on other sites More sharing options...
d4rk Posted July 24, 2008 Author Share Posted July 24, 2008 Thanks you, i'll try it tommorow [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
d4rk Posted July 25, 2008 Author Share Posted July 25, 2008 Hahah, i figure it out , that's a newbie mistake, i didn't add GUICtrlRead() to the $Password when i wrote it into the ini file ! tjx [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now