Jump to content

Recommended Posts

Posted

Hmm... So you're going to drop d and f chunks?

Nah, don't think so, I like having the ability to not having the next file entry directly after the previous entry.

Broken link? PM me and I'll send you the file!

Posted (edited)

Would reccoment aes. Maybe in combination with wirlpool, there os already an aes example here in the forum, i dont remember if it Needs an additional dll but i can write a func for u thats standalone ...

http://www.autoitscript.com/forum/index.php?showtopic=78745

Edited by JRSmile
$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")
For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)
Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI"
Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;
MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)
Posted

i get error in this code

#include "FAF Archiver.au3"

_FAF_CreateArchive("pippo.faf", "Hal9000")
$faf= _FAF_OpenArchive("pippo.faf")
_FAF_AddFileToArchive($faf, "wallpaper change.au3", "FAF_FLAG_RAW")
_FAF_CloseArchive($faf)

this is the error

---------------------------

Error

---------------------------

_WinAPI_CloseHandle: Handle non valido.

---------------------------

OK

---------------------------

Posted
Posted

@monoceres

Again very nice !! :P

I have gather many encryption UDF's over time (+50)

So If you are interested I can send them to you, so you don't have to reinvent the wheel.

Or spend a lot of time searching the forum.

Regards

ptrex

interrested in this too @ptrex

$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")
For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)
Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI"
Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;
MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)
Posted

i get error in this code

#include "FAF Archiver.au3"
 
 _FAF_CreateArchive("pippo.faf", "Hal9000")
 $faf= _FAF_OpenArchive("pippo.faf")
 _FAF_AddFileToArchive($faf, "wallpaper change.au3", "FAF_FLAG_RAW")
 _FAF_CloseArchive($faf)

this is the error

---------------------------

Error

---------------------------

_WinAPI_CloseHandle: Handle non valido.

---------------------------

OK

---------------------------

You recieve an handle from _FAF_CreateArchive() as well so you shouldn't use both _FAF_CreateArchive() and _FAF_OpenArchive(). The latter is when you want to open an old archive.

@ptrex, sure hit me a pm and I will be take a look :P

Broken link? PM me and I'll send you the file!

Posted

Minor update!

  • All types in headers are now unsigned
  • Magic control number is now 4 bytes
  • _FAF_DeleteFileInArchive() is now implemented

I feel that I need to say something about the Delete function, use it wisely, for example the following example will not work as you expect:

#include "FAF Archiver.au3"
$faf=_FAF_OpenArchive("test.faf")
$index = _FAF_ReadArchiveIndex($faf)
For $i=0 To UBound($index)-1
    _FAF_DeleteFileInArchive($faf,$index[$i][3])
Next
_FAF_CloseArchive($faf)

... while this will:

#include "FAF Archiver.au3"
$faf=_FAF_OpenARchive("testar.faf")
$index = _FAF_ReadArchiveIndex($faf)
For $i=UBound($index)-1 To 0 Step -1
    _FAF_DeleteFileInArchive($faf,$index[$i][3])
Next
_FAF_CloseArchive($faf)

Why? Because everytime you delete a file the ID's in the archive gets modified so that they are in order ( first file will always have ID=0 and second ID=1 etc.).

Think of the archive structure like an array, the _FAF_DeleteFileInArchive function works like _ArrayDelete().

Furthermore, it will be faster deleting backwards due to internal workings.

First post for latest version.

Broken link? PM me and I'll send you the file!

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...