Jump to content

_StringEncrypt() Usage!


Recommended Posts

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

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

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