|
-
Jun 24th, 2001, 06:52 PM
#1
Thread Starter
_______
< encrypt decrypt >
Does anyone have an encrypt and decrypt that can do sound files as well...ie..wav and mp3. I have one that uses binary but it can't handle wav or mp3.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 24th, 2001, 06:54 PM
#2
Frenzied Member
Stupid Question: Why would you want to encrypt a sound (.wav, .mp3) file?
-
Jun 24th, 2001, 07:02 PM
#3
Thread Starter
_______
<?>
stupid answer:
I have a little app that encrypts and decrypts files and all files in folders and if when doing a folder, there is a sound file, the app blows up...I just thought it would be simpler if someone had something instead of my writing if statements and error handlers..

...out and out lazyness....
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 24th, 2001, 07:02 PM
#4
Registered User
Perhaps another stupid question: did you try Megatron's xor example?
-
Jun 24th, 2001, 08:18 PM
#5
Thread Starter
_______
<?>
Nope, but I'll look it up.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 24th, 2001, 08:53 PM
#6
Registered User
Encrypt an exe:
VB Code:
Sub Encrypt(ByVal sName As String)
Dim b() As Byte
Dim nb() As Byte
n = FileLen(sName)
ReDim b(n - 1)
ReDim nb(n - 1)
Open sName For Binary Access Read As #1
Get #1, , b()
Close #1
Kill sName
For i = LBound(b) To UBound(b)
nb(i) = b(i) Xor 5
Next i
Open sName For Binary Access Write As #1
Put #1, , nb()
Close #1
End Sub
Usage
Encrypt "MyFile.exe"
Since this is Xor encryption, it will do both encrypting and decrypting.
I have a feeling this will work as it just xors the byte values, so I don't see how it could tamper with the sound file. If it works thank Megatron
-
Jun 24th, 2001, 09:54 PM
#7
Thread Starter
_______
<?>
Same scoop on sound files so I guess I'll have to get over my lazy attitude here and do a little work...thanks Nucleus and Megatron...nice little diddy...save it for future use as I already have a working encrypt and decrypt for this one.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 24th, 2001, 10:03 PM
#8
Registered User
Wayne,
I didn't understand, did it work?
I just tested it on my system and it works with wav files. I encrypted it, then decrypted it. It played the wav just fine.
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
|