Skip to content

Commit d4093e5

Browse files
committed
Made encryptContent/decryptContent public
1 parent 533ad03 commit d4093e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CryptoLib/Cryptor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public class Cryptor {
143143

144144
// MARK: - File Content Encryption and Decryption
145145

146-
func encryptContent(from cleartextURL: URL, to ciphertextURL: URL) throws {
146+
public func encryptContent(from cleartextURL: URL, to ciphertextURL: URL) throws {
147147
// open cleartext input stream:
148148
guard let cleartextStream = InputStream(url: cleartextURL) else {
149149
throw CryptoError.ioError
@@ -183,7 +183,7 @@ public class Cryptor {
183183
}
184184
}
185185

186-
func decryptContent(from ciphertextURL: URL, to cleartextURL: URL) throws {
186+
public func decryptContent(from ciphertextURL: URL, to cleartextURL: URL) throws {
187187
// open ciphertext input stream:
188188
guard let ciphertextStream = InputStream(url: ciphertextURL) else {
189189
throw CryptoError.ioError

0 commit comments

Comments
 (0)