The MASM Forum

Projects => MasmBasic & the RichMasm IDE => Topic started by: 3bas_Elhendy on November 04, 2024, 01:55:05 AM

Title: help in encrypt , decrypt code[closed]
Post by: 3bas_Elhendy on November 04, 2024, 01:55:05 AM
[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