im not too sure exactly what your after but you may be able to hide your data as follows,
here are 2 simple functions. one converts a byte to a binary string the other converts a binary string to an integer: (ps binary string is just what i call it, i dont think its a vb term)
so for example:-
Private Sub Command2_Click()
Dim mystring As String
Dim i As Integer
Dim temp As Byte
Dim bigbinary As String
mystring = "password"
For i = 1 To Len(mystring)
temp = Asc(Mid(mystring, i, 1))
bigbinary = bigbinary & ByteToBit(temp)
Next i
then to convert back use the bittodec function
End Sub
Private Function ByteToBit(myByte As Byte) As String
'Bit == 32103210
' --------
'&HF0 == "11110000"
'&H0A == "00001010"
Dim k As Integer
Dim x As Integer
Dim valofbyte As Integer
Dim mybytetobit As String
valofbyte = Val(CStr(myByte))
mybytetobit = ""
For k = 0 To 7
x = 2 ^ k
If valofbyte And x Then
mybytetobit = "1" & mybytetobit
Else
mybytetobit = "0" & mybytetobit
End If
Next k
ByteToBit = mybytetobit
End Function
Private Function BitToDec(MyBit As String) As Integer
' 32103210
' --------
'"00001010" == 10
'"11010100" == 212
Dim k As Integer
Dim x As Integer
Dim mybittodec As Integer
Dim myLength As Integer
myLength = Len(MyBit)
For k = 1 To myLength
If Mid(MyBit, k, 1) = 1 Then
x = 2 ^ (myLength - k)
mybittodec = mybittodec + x
End If
Next k
BitToDec = mybittodec
End Function
its not the most secure thing in the world but it closes prying eyes!
hope ive not wasted your time, good luck! If somethings hard to do, its not worth doing - Homer Simpson