Results 1 to 40 of 56

Thread: [RESOLVED] How to Write an encripted Text File???

Threaded View

  1. #25
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: How to Write an encripted Text File???

    vb Code:
    1. Public Sub Command1_Click()
    2. InitLUT 'this must be called before the cipher sub/function
    3.  
    4. Dim bAry() as Byte
    5. Call FXInCipher(Form1.Text2.Text, bAry)
    6. Open "c:\program files\visual director 2010\program\usernames\" & Form1.Text1.Text & ".pas" For Binary As #1
    7.     Put 1, 1, bAry
    8. Close #1
    9.  
    10. End Sub

    Conversely:

    vb Code:
    1. Public Sub Command1_Click()
    2. InitLUT 'this must be called before the cipher sub/function
    3.  
    4. Dim bAry() as Byte
    5. Open "c:\program files\visual director 2010\program\usernames\" & Form1.Text1.Text & ".pas" For Binary As #1
    6.     reDim bAry(lof(1)-1)
    7.     Get 1, 1, bAry
    8. Close #1
    9. msgbox FXDeCipher(bAry)
    10. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width