Skip to content

Commit e45a263

Browse files
committed
v1.9.0
1 parent e77873c commit e45a263

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.9.0
2+
- Renamed bytes to byteArray in Data extension to avoid conflict with Swift 6.2 by @mluisbrown in #1076 and #1077
3+
14
1.8.5
25
- Update README.md by @donatik27 in #1059
36
- Add Android support by @marcprux in #1065

CryptoSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "CryptoSwift"
3-
s.version = "1.8.5"
3+
s.version = "1.9.0"
44
s.source = { :git => "https://github.com/krzyzanowskim/CryptoSwift.git", :tag => "#{s.version}" }
55
s.summary = "Cryptography in Swift. SHA, MD5, CRC, PBKDF, Poly1305, HMAC, CMAC, HDKF, Scrypt, ChaCha20, Rabbit, Blowfish, AES, RSA."
66
s.description = "Cryptography functions and helpers for Swift implemented in Swift. SHA-1, SHA-2, SHA-3, MD5, PBKDF1, PBKDF2, Scrypt, CRC, Poly1305, HMAC, ChaCha20, Rabbit, Blowfish, AES, RSA"

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ It is recommended to enable [Whole-Module Optimization](https://swift.org/blog/w
131131
You can use [Swift Package Manager](https://swift.org/package-manager/) and specify dependency in `Package.swift` by adding this:
132132

133133
```swift
134-
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.8.5")
134+
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.9.0")
135135
```
136136

137137
See: [Package.swift - manual](https://blog.krzyzanowskim.com/2016/08/09/package-swift-manual/)
@@ -143,7 +143,7 @@ Notice: Swift Package Manager uses debug configuration for debug Xcode build, th
143143
You can use [CocoaPods](https://cocoapods.org/pods/CryptoSwift).
144144

145145
```ruby
146-
pod 'CryptoSwift', '~> 1.8.5'
146+
pod 'CryptoSwift', '~> 1.9.0'
147147
```
148148

149149
Bear in mind that CocoaPods will build CryptoSwift without [Whole-Module Optimization](https://swift.org/blog/whole-module-optimizations/) that may impact performance. You can change it manually after installation, or use [cocoapods-wholemodule](https://github.com/jedlewison/cocoapods-wholemodule) plugin.
@@ -194,7 +194,8 @@ In the project, you'll find [single scheme](https://mxcl.dev/PromiseKit/news/201
194194
- Swift 4.2, branch [swift42](https://github.com/krzyzanowskim/CryptoSwift/tree/swift42) version <= 0.15.0
195195
- Swift 5.0, branch [swift5](https://github.com/krzyzanowskim/CryptoSwift/tree/swift5) version <= 1.2.0
196196
- Swift 5.1, branch [swift5](https://github.com/krzyzanowskim/CryptoSwift/tree/swift51) version <= 1.3.3
197-
- Swift 5.3 and newer, branch [main](https://github.com/krzyzanowskim/CryptoSwift/tree/main)
197+
- Swift 5.3, branch [swift53](https://github.com/krzyzanowskim/CryptoSwift/tree/swift53) version <= 1.8.5
198+
- Swift 6.2 and newer, branch [main](https://github.com/krzyzanowskim/CryptoSwift/tree/main)
198199

199200
## How-to
200201

@@ -232,7 +233,7 @@ let data = Data([0x01, 0x02, 0x03])
232233
`Data` to `Array<UInt8>`
233234

234235
```swift
235-
let bytes = data.bytes // [1,2,3]
236+
let bytes = data.byteArray // [1,2,3]
236237
```
237238

238239
[Hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) encoding:
@@ -405,11 +406,11 @@ let aes = try AES(key: key, blockMode: CBC(iv: iv), padding: .pkcs7)
405406

406407
/* Encrypt Data */
407408
let inputData = Data()
408-
let encryptedBytes = try aes.encrypt(inputData.bytes)
409+
let encryptedBytes = try aes.encrypt(inputData.byteArray)
409410
let encryptedData = Data(encryptedBytes)
410411

411412
/* Decrypt Data */
412-
let decryptedBytes = try aes.decrypt(encryptedData.bytes)
413+
let decryptedBytes = try aes.decrypt(encryptedData.byteArray)
413414
let decryptedData = Data(decryptedBytes)
414415
```
415416

config/Project-Shared.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MARKETING_VERSION = 1.8.5
1+
MARKETING_VERSION = 1.9.0
22

33
SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator xrsimulator xros
44

0 commit comments

Comments
 (0)