Skip to content

1.0.0

@alfwatt alfwatt tagged this 26 Feb 16:01
- ILFoundation `1.0`: 26 February 2025
    - Forked from KitBridge, added NSData hash code functions

- [`ILHashable`](./Sources/ILFoundation/include/ILHashable.h)
  - Adds: methods for generating Message Digest and Secure Hashes from objects

- [`NSData+ILFoundation`](./Sources/ILFoundation/include/NSData+ILFoundation.h)
  - Adds: `ILHashable` methods to `NSData`

- [`NSStream+ILFoundation`](./Sources/ILFoundation/include/NSStream+ILFoundation.h)
  - Adds: `ILHashable` methods to `NSInputStream`
  - Adds: `ILHasingInputStream` class to wrap `NSInputStream` objects and generate hash codes

- [`NSString+ILFoundation`](./Sources/ILFoundation/include/NSString+ILFoundation.h)
  - Adds: `+UTFEncodingOfData:` to auto-detect UTF formatted strings
  - Adds: `+stringWithUTFData:` and `-initWithUTFData:`
  - Adds: `-dataWithByteOrderUTFEncoding:`
  - Adds: `+hexStringWithData:` to generate hex output from NSData
  - Adds: `-initHexStringWithData:`
  - Adds: `-linesWithMaxLen:` to split a long string (hex or otherwise) into lines of a maximum length

- [`NSURL+ILFoundation`](./Sources/ILFoundation/include/NSURL+ILFoundation.h) Adds methods for working with [RFC 2397](https://www.rfc-editor.org/rfc/rfc2397) `data:` URLs:
  - Adds: `+dataURLWithData:` and `+dataURLwithData:mediaType:parameters:contentEncoding:` for genrating `data:` URLs
  - Adds: `+URLWithUTTypeData:` for generating `data:` URLs from pasteboard data with UTType `public.url`
  - Adds: `-URLData` and `-URLDataWithMediaType:parameters:contentEncoding:` for parsing `data:` URLs
      - Supports `utf8`, `hex`, and `base64` encodings
Assets 2
Loading