|
-
Aug 19th, 2006, 11:36 AM
#1
Thread Starter
Addicted Member
-
Aug 19th, 2006, 11:38 AM
#2
Re: Need a really simple encrypt code!
From AllAPI.net:
VB Code:
'Note: Encryptfile only works on NTFS 5
Private Declare Function EncryptFile Lib "ADVAPI32" Alias "EncryptFileA" (ByVal lpFileName As String) As Boolean
Private Declare Function DecryptFile Lib "ADVAPI32" Alias "DecryptFileA" (ByVal lpFileName As String, ByVal dwReserved As Long) As Boolean
Const mFile = "c:\test.txt"
Private Sub Form_Load()
'KPD-Team 2000
'URL: [url]http://www.allapi.net/[/url]
Encrypt mFile
End Sub
Sub Encrypt(sFile As String)
If EncryptFile(mFile) Then
MsgBox "The file's succesfully encrypted. Log in as another user and try to access this file."
End If
End Sub
Sub Decrypt(sFile As String)
If DecryptFile(mFile, 0) = True Then
MsgBox "The file's succesfully decrypted."
End If
End Sub
-
Aug 19th, 2006, 11:40 AM
#3
Fanatic Member
Re: Need a really simple encrypt code!
Hi Alex!
Here's a fast & strong file & text encryption module
There's another one Here
-
Aug 19th, 2006, 11:50 AM
#4
Thread Starter
Addicted Member
Re: Need a really simple encrypt code!
gavio: on my computer, nothing happends when I run that code..
-
Aug 19th, 2006, 11:52 AM
#5
Fanatic Member
Re: Need a really simple encrypt code!
Did you try the examples I linked to?
-
Aug 19th, 2006, 11:58 AM
#6
Thread Starter
Addicted Member
Re: Need a really simple encrypt code!
yes, just did. works great! 
tnx shirazamod!
-
Aug 19th, 2006, 12:36 PM
#7
Fanatic Member
Re: [RESOLVED] Need a really simple encrypt code!
My pleasure
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|