Iseng-iseng nyari informasi tentang menyembunyikan file di windows, dan akhirnya dapet informasi yang menarik dari blog.fastncheap.com, di artikel tersebut menjelaskan bagaimana cara Menyembunyikan File Didalam File Gambar JPG (http://blog.fastncheap.com/menyembunyikan-file-didalam-file-gambar-jpg/) tetapi dengan satu syarat bentuk file tersebut haruslah berbentuk compressan (*.rar,*zip,dsb), dan caranya sangat mudah, dengan menggunakan command prompt. Tetapi disini saya ingin membuat hal yang baru dari hal tersebut, membuat GUI-nya.. baca do'a dulu biar sukses.hehe
1. Buat aplikasi visual basic 6.0 seperti gambar di bawah ini
2. Dan masukin coding di bawah ini
1. Buat aplikasi visual basic 6.0 seperti gambar di bawah ini
Komponen | Properties |
Label1 | Caption = Menyembunyikan File Dalam Gambar Jpg |
Command1 | Caption = Build |
Commend2 | Caption = Compressed File |
Command3 | Caption = Picture |
Command4 | Caption = Output File Picture |
Command5 | Caption = Cancel |
2. Dan masukin coding di bawah ini
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type
Dim OFName As OPENFILENAME
Private Function ShowSave(filter) As String
OFName.lStructSize = Len(OFName)
OFName.hwndOwner = Me.hWnd
OFName.hInstance = App.hInstance
OFName.lpstrFilter = filter
OFName.lpstrFile = Space$(254)
OFName.nMaxFile = 255
OFName.lpstrFileTitle = Space$(254)
OFName.nMaxFileTitle = 255
OFName.lpstrInitialDir = "C:\"
OFName.lpstrTitle = "Save File - KPD-Team 1998"
OFName.flags = 0
If GetSaveFileName(OFName) Then
ShowSave = Trim$(OFName.lpstrFile)
Else
Exit Function
End If
End Function
Private Function ShowOpen(filter, text)
OFName.lStructSize = Len(OFName)
OFName.hwndOwner = Me.hWnd
OFName.hInstance = App.hInstance
OFName.lpstrFilter = filter
OFName.lpstrFile = Space$(254)
OFName.nMaxFile = 255
OFName.lpstrFileTitle = Space$(254)
OFName.nMaxFileTitle = 255
OFName.lpstrInitialDir = "C:\"
OFName.lpstrTitle = "Created By Ganang"
OFName.flags = 0
If GetOpenFileName(OFName) Then
text.text = Trim$(OFName.lpstrFile)
Else
Exit Function
End If
End Function
Private Sub Command1_Click()
On Error Resume Next
Shell "cmd /c copy /b " & Chr$(34) & Text2.text & Chr$(34) & " + " & Chr$(34) & Text1.text & Chr$(34) & " " & Chr$(34) & Text3.text & Chr$(34), vbHide
MsgBox "Sudah selesai", vbOKOnly, "Created By Ganang"
End Sub
Private Sub Command2_Click()
ShowOpen "Rar Files (*.rar)" + Chr$(0) + "*.rar", Text1
End Sub
Private Sub Command3_Click()
ShowOpen "Jpg Files (*.jpg)" + Chr$(0) + "*.jpg", Text2
End Sub
Private Sub Command4_Click()
Text3.text = ShowSave("Jpg Files (*.jpg)" + Chr$(0) + "*.jpg")
Text3.text = Text3.text & ".jpg"
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type
Dim OFName As OPENFILENAME
Private Function ShowSave(filter) As String
OFName.lStructSize = Len(OFName)
OFName.hwndOwner = Me.hWnd
OFName.hInstance = App.hInstance
OFName.lpstrFilter = filter
OFName.lpstrFile = Space$(254)
OFName.nMaxFile = 255
OFName.lpstrFileTitle = Space$(254)
OFName.nMaxFileTitle = 255
OFName.lpstrInitialDir = "C:\"
OFName.lpstrTitle = "Save File - KPD-Team 1998"
OFName.flags = 0
If GetSaveFileName(OFName) Then
ShowSave = Trim$(OFName.lpstrFile)
Else
Exit Function
End If
End Function
Private Function ShowOpen(filter, text)
OFName.lStructSize = Len(OFName)
OFName.hwndOwner = Me.hWnd
OFName.hInstance = App.hInstance
OFName.lpstrFilter = filter
OFName.lpstrFile = Space$(254)
OFName.nMaxFile = 255
OFName.lpstrFileTitle = Space$(254)
OFName.nMaxFileTitle = 255
OFName.lpstrInitialDir = "C:\"
OFName.lpstrTitle = "Created By Ganang"
OFName.flags = 0
If GetOpenFileName(OFName) Then
text.text = Trim$(OFName.lpstrFile)
Else
Exit Function
End If
End Function
Private Sub Command1_Click()
On Error Resume Next
Shell "cmd /c copy /b " & Chr$(34) & Text2.text & Chr$(34) & " + " & Chr$(34) & Text1.text & Chr$(34) & " " & Chr$(34) & Text3.text & Chr$(34), vbHide
MsgBox "Sudah selesai", vbOKOnly, "Created By Ganang"
End Sub
Private Sub Command2_Click()
ShowOpen "Rar Files (*.rar)" + Chr$(0) + "*.rar", Text1
End Sub
Private Sub Command3_Click()
ShowOpen "Jpg Files (*.jpg)" + Chr$(0) + "*.jpg", Text2
End Sub
Private Sub Command4_Click()
Text3.text = ShowSave("Jpg Files (*.jpg)" + Chr$(0) + "*.jpg")
Text3.text = Text3.text & ".jpg"
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
3. Berikut Cara Menggunakannya
pada aplikasi klik Tombol Compressed, lalu cari file compress disini saya menggunakan contoh.rar, lalu klik Picture cari file gambar yang berbentuk jpg, di saya menggunakan sunset.jpg, lalu klik Output File Picture, save dengan nama yang agan inginkan, disini saya mengesave dengan nama coba.jpg, lalu klik Build
akan muncul file jpg dengan nama coba.jpg, tetapi file sizenya bertambah besar di karenakan file rar yg ada di dalamnya, perhatika gambar sebelum dan sesudahnya. tapi lumayan untuk menyembunyikan file.hehe
setelah itu buka (open with) dengan aplikasi rar atau yang lain, saya menggunakan rar dan hasilnya akan seperti di bawah ini
moga bermanfaat bagi agan-agan yang ingin mencobanya,
moga berhasil mencobanya..
Download http://adf.ly/1ZKz73moga berhasil mencobanya..
password rar: ganyang-angkara.blogspot.com
*Tested windows xp
*update Steganografi / Steganography VB6
*..sesama blogger harus saling menghargai, jika agan-agan ingin mengcopas harap cantumkan alamat urlnya, Terimakasih..*