Jump to content
Sign in to follow this  
d4rk

_StringEncrypt() Usage!

Recommended Posts

d4rk

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

Share this post


Link to post
Share on other sites
James

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.

Share this post


Link to post
Share on other sites
BrettF

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

Share this post


Link to post
Share on other sites
Andreik

RC4 it`s more simple to use than _StringEncrypt().


When the words fail... music speaks

Share this post


Link to post
Share on other sites
d4rk

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

Share this post


Link to post
Share on other sites
d4rk

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

Share this post


Link to post
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
Sign in to follow this  

×