Results 1 to 4 of 4

Thread: Ascii Encrypt

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Bombay,Maharashtra,India
    Posts
    20

    Ascii Encrypt

    is there any way i can encrypt my ASCII character too

  2. #2
    DaoK
    Guest
    You can encrypt it byt simply add +1 to the ascii chr then to decrypt -1.

  3. #3
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    Here is a simple bit encryption routine for ascii characters. It is well commented and easy to use but don't expect it to be too secure.

    http://freevbcode.com/ShowCode.Asp?ID=1092

    Greg
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

  4. #4
    DaoK
    Guest
    Write your code in TEXT1 and it will give your the crypted thing in the TEXT2.

    VB Code:
    1. For i = 1 To Len(Text1.Text)
    2.             lettre = Mid(Text1.Text, i, 1)
    3.             code = Asc(lettre)
    4.             If code <> 32 Then
    5.                     code = code + 1
    6.             End If
    7.             lettre = Chr(code)
    8.             Text2.Text = Text2.Text + lettre
    9.     Next i

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