News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

help in encrypt , decrypt code[closed]

Started by 3bas_Elhendy, November 04, 2024, 01:55:05 AM

Previous topic - Next topic

3bas_Elhendy

[Edit]
I getted it

I was testing set password for all encrypting and decrypting.

include \masm32\MasmBasic\MasmBasic.inc
;.data
;  Password db "AMU", 0

  Init
  Let esi = Qtrim$(CL$())                 
  .if Exist(esi)
    Let edi = "ahmed"                 
    Encrypt esi, edi                     
    PrintLine "Encoded as ", eax         
    Kill esi                             
  .else
    PrintLine "No commandline found: ", esi
  .endif
EndOfCode
include \masm32\MasmBasic\MasmBasic.inc
;.data
;  Password db "AMU", 0
;
  Init
  Let esi = Qtrim$(CL$())                 
  .if Exist(esi)
    Let edi = "ahmed"                     
    Decrypt esi, edi                     
    PrintLine "Decoded as ", eax         
    ;Kill esi                             
  .else
    PrintLine "No commandline found: ", esi
  .endif
EndOfCode
but always got bad password