Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: High-level API for reading and writing large encrypted files #131

Closed

Conversation

jnoel-hrs
Copy link

Added a new class AESEncryptedFile which takes a file path + password, and produces an InputStream to read from or an OutputStream to write to. Written data will be encrypted before it hits the disk, and the file can be decrypted/read back from disk when given the same password.

The intent here is to make a plug-and-play solution similar to the AndroidX EncryptedFile API for people who are novices with crypto (like myself).

I'm new-ish to swift and the CommonCrypto library, so any suggestions here are very much welcome

@iosdevzone
Copy link
Owner

Thanks for taking the time to suggest this and putting in all the effort to get it working. However, I am not sure this is a good fit for this repository. Specifically, the goal of this library is provide a Swift wrapper around CommonCrypto, not to add additional functionality.

I would recommend creating your own repo that includes this library as a dependency.

All that being said, I'll try to take some time to take a look at your code over the weekend and let you know if I spot any issues.

@jnoel-hrs
Copy link
Author

Thanks for the feedback! That totally makes sense - will work on getting this into it's own repo.

@jnoel-hrs jnoel-hrs closed this Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants