|
-
Oct 20th, 2007, 04:35 PM
#1
Thread Starter
Frenzied Member
Anyone have a very very fast encrypt/decrypt function?
Heres what im currently using:
VB Code:
Public Function enc(m As String) As String
On Error Resume Next
Dim a As Long, x As Long, z As String
For a = 1 To Len(m)
x = Asc(Mid$(m, a, 1))
z = Chr$(x + 2)
Mid$(m, a, 1) = z
Next a
enc = m
End Function
Public Function dec(m As String) As String
On Error Resume Next
Dim a As Long, x As Long, z As String
For a = 1 To Len(m)
x = Asc(Mid$(m, a, 1))
z = Chr$(x - 2)
Mid$(m, a, 1) = z
Next a
dec = m
End Function
But im looking for something faster
-
Oct 20th, 2007, 09:07 PM
#2
Re: Anyone have a very very fast encrypt/decrypt function?
There are some of these routines in our CodeBank. Have you looked at them?
-
Oct 21st, 2007, 06:13 PM
#3
Re: Anyone have a very very fast encrypt/decrypt function?
-
Oct 22nd, 2007, 09:39 PM
#4
Re: Anyone have a very very fast encrypt/decrypt function?
This should be pretty fast:
VB - 31 Bit Encryption function
Also see post #18 by frozen, he changed it to process using byte arrays
Last edited by CVMichael; Oct 22nd, 2007 at 10:04 PM.
-
Oct 23rd, 2007, 03:42 AM
#5
Hyperactive Member
Re: Anyone have a very very fast encrypt/decrypt function?
 Originally Posted by VaxoP
Heres what im currently using:
But im looking for something faster 
I'm testing your code to encript/decript simple TXT files....it works fine.
Why do you think is not fast enough ? Tell me
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
|