We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[3899] Skinning (BitBlt Introduction)

Last post 02-07-2007 4:37 AM by Scotty01. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3899] Skinning (BitBlt Introduction)

    This thread is for discussions of Skinning (BitBlt Introduction).

    • Post Points: 0
  • 04-04-2004 7:20 AM In reply to

    how convert doc file into HTML format

    hello friends
    now i am in trouble.plz help me in convert the doc file into html format using vb
    programing code.
    plz help me i wait yours reply
    • Post Points: 0
  • 10-15-2004 4:10 PM In reply to

    • GreenMax
    • Not Ranked
    • Joined on 10-15-2004
    • New Member
    • Points 5
    Be Happy....Baby
    • Post Points: 0
  • 05-17-2005 4:39 AM In reply to

    • Sindu
    • Not Ranked
    • Joined on 05-17-2005
    • New Member
    • Points 70

    how to encrypt picture using visual basic

    how to encrypt picture files using visual basic so that only certain people who know the password can see the picture
    • Post Points: 0
  • 06-17-2005 12:15 PM In reply to


    You can use a simple random XOR shift to do the 'encrypting'... as you probably know XOR of XOR gives original, so you can use the same for encoding/decoding provided the shift key is right. If you supply the file (binary) to this function, then it'll return encoded with the given key.
    If you pass the encoded file, it'll return the original file.

    [courier new]
    Public Function EncodeDecode(Data As String, Key As Long) As String
    On Error Resume Next

    Dim I As Long, X As Single
    Dim CharNum As Integer, RandInteger As Integer
    Dim SingleChar As String * 1
    Dim ReturnData As String

    X = Rnd(-Key)

    For I = 1 To Len(Data)
     CharNum = Asc(Mid$(Data, I, 1))
     RandInteger = Int(256 * Rnd)
     CharNum = CharNum Xor RandInteger
     
     SingleChar = Chr(CharNum)
     ReturnData = ReturnData & SingleChar
    Next I

    EncodeDecode = ReturnData
    End Function
    [/courier new]

    But how do you make a key out of password ? Convert it to a number that vastly varies according to the password...

    [courier new]
    Public Function ConvertPassKey(Key as String) As Long
    Dim I As Integer, Num As Long

    Key = LCase(Key)
    Num = 1
    For I = 1 To Len(Key)
    Num = Num + (I * Asc(Mid(Key, I, 1)))
    Next I

    ConvertPassKey = Num
    End Function
    [/courier new]

    Be VERY, VERY WARY  of the data you pass to the function. A slight shifting of even a single character will ruin the entire decoding process, and you'll get junk data!!!

    I suggest you do multiple "parity" checks before actually give it up for decoding....

    Also, encoding/decoding takes some time... that's why i prefer my tried and tested method "mangle da header!"
    Enjoy !
    • Post Points: 0
  • 11-16-2005 9:38 PM In reply to

    sample

    there's a sample code in vb.net on this website that changes text to html. maybe you can use it?
    ---
    http://www.cubevision.co.nr
    • Post Points: 0
  • 02-10-2006 9:56 AM In reply to

    Skinnable VB.NET Form


     thanks for the great material you posted but unfortunatelly for me
     it all is in VB6. Can you show me a VB.NET example for this problem
     
    thanks
    • Post Points: 10
  • 02-07-2007 4:37 AM In reply to

    • Scotty01
    • Not Ranked
    • Joined on 02-07-2007
    • New Member
    • Points 5

    Re: Skinnable VB.NET Form

    umm.... how do i fix the obstruction problem? help wanted fom any1
    • Post Points: 5
Page 1 of 1 (8 items)