1. Visitors to the Programming and Scripting section should be aware of a recent rules revision that can be read by clicking here. Thank you.
  2. Stackable banners

    Banners are no longer stackable, but instead ranked in order of styling priority. For instance, if you won one of the monthly competitions but also had Premium, only the Community Champion banner would be displayed. You will still remain in both usergroups, however. Hope that provides some clarification!

PackageIO [Open Source IO Class]

Discussion in 'Releases' started by feudalnate, Aug 14, 2009 with 8 replies and 6,569 views.

  1. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274
    Developed by feudalnate
    Special thanks to Mojobojo and DJ Shepherd
    Latest Version: 0.1.9.3

    Usage:

    *Add dll as a reference

    VB:
    Code (Text):
    Imports PackageIO
     
    Dim reader as New PackageIO.Reader(file, Endian.Big)
     
    C#
    Code (Text):

    using PackageIO;
     
    PackageIO writer = New PackageIO.Writer(file, Endian.Big);
     
    Example of using IO class:

    Code (Text):
    Dim IO as New PackageIO.IO(File, Endian.Little)
    Dim Buffer as Byte() = IO.ReadBytes(1337)
    IO.Position = 117
    IO.SwapEndian()
    IO.Write(Buffer)
    IO.Close()
    Example of using Algorithms classes:

    Code (Text):
    Dim Reader as New PackageIO.Reader(File)
    Dim Writer as New PackageIO.Writer(File, Endian.Little, 30)
    Dim SHA1 as New PackageIO.Algorithms.SHA1
    Writer.Write(SHA1.Compute(Reader.ReadBytes(30)))
    Reader.Close()
    Writer.Close()
    Example of using Encryption classes:

    Code (Text):
    Dim AES As New PackageIO.Encryption.Aes()
    AES.Encrypt(Data)
     
    Dim RC2 As New PackageIO.Encryption.RC2(Key, IV)
    RC2.Encrypt(Data, Length)
    Example of using Public Key Cryptography classes:

    Code (Text):
    Dim RSA As New PackageIO.PublicKeyCryptography.RSA(New RSAParameters)
    RSA.SignData(Data, "sha-1")
     
    Dim PKCS1 As New PackageIO.PublicKeyCryptography.PKCS1()
    PKCS1.Key = New RSAParameters
    PKCS1.GenerateSignature(Hash, "sha-1")
    PKCS1.ValidateSignature(Hash, Signature, "sha-1")
     
    Example of using search function:
    Code (Text):
    Function SearchBytes(ByVal Bytes As Byte(), ByVal Position As  Long, ByVal ReturnFirstResultOnly As Boolean) As List(Of Integer)
            Dim File As String = Functions.OpenDialog
            If File = Nothing Then Return Nothing
            Dim Reader As New PackageIO.Reader(File)
            Dim Results As List(Of Integer) = Reader.Search(Bytes, Position, ReturnFirstResultOnly)
            Reader.Close()
            Return Results
        End Function
     

    Includes:

    * Supports Big (Motorola)/Little (Intel) Endian byte order reading/writing

    * Supports reading/writing (signed & unsigned): Int8/16/24/32/40/48/56/64/Single/Double

    * Supports reading/writing: ASCII/Char/Byte String(Hex)/Unicode/Binary String

    * Supports searching: Int8/16/24/32/40/48/56/64/Single/Double (signed & unsigned), ASCII/Unicode/Hex string and byte searching

    * Supports SHA#1/#2/#3/#5, RIPEMD160, Adler32, CRC32, BZIP, Checksum, XOR, MACTripleDES, MD5, HMACSHA#1/#2/#3/#5, HMACRIPEMD160, HMACMD5 & HMACMACTripleDES algorithms

    * Supports AES, DES, RC2, RC4, RSA, TripleDES, & RijndaelManaged encryption

    * Supports RSA and DSA public key cryptography

    * Supports Deflate & GZip compression

    * Misc. array/image/numerical/dialog functions


    It will be updated frequently.


    View C# Source | Download .cs
    Visit website
    *Latest updates can be found in the official thread*
    *Older versions can be downloaded or viewed on the website.*
     
  2. sgt frankieboy

    sgt frankieboy Enthusiast

    Messages:
    724
    Likes Received:
    133
    I downloaded it Checking what it Can Do
     
  3. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274

    I told you what it can do and why did you edit my links Ibdc? Im not allowed to earn the $0.00034 a click for my work I'm handing out to the public?
     
    2 people like this.
  4. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274
    Updated
     
    1 person likes this.
  5. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274
    Updated (0.1.7.0)
     
    1 person likes this.
  6. Thilo

    Thilo Newbie

    Messages:
    2,787
    Likes Received:
    1,202
    VERY nice work, guys.
     
  7. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274
     
  8. Apathy

    Apathy Seasoned Member

    Messages:
    3,002
    Likes Received:
    880
    Seeing as it hasn't been updated.

    Download Link for PackageIO.dll 0.1.9.2: http://360haven.com/feudalnate/projects/dll/0.1.9.2/PackageIO.dll
     
  9. feudalnate

    feudalnate VIP VIP

    Messages:
    519
    Likes Received:
    274
    Change logs since 0.1.8.0: