How do I encrypt and decrypt files and text? [closed] - swift

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 days ago.
This post was edited and submitted for review 2 days ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I am trying to encrypt and decrypt files and text for an encryption app in Swift, I want to encrypt with AES.
How can I encrypt and decrypt text and files in Swift?

Apple's platforms have the built-in CommonCrypto library that allows you to perform cryptographic operations, it does not need to be installed. And as for your question, you did not specify which algorithm you want to encrypt data, RSA, AES, etc.

Related

Is it safe to share SHA-256 hash of app signing with someone else? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
Recently I shared my SHA-1 and SHA-256 keys with someone while incorporating Google Sign-in through Firebase in a Flutter app.
While I read in another answer that it's not too unsafe to share the SHA-1 key, I couldn't find this info about SHA 256.
I am not too familiar with security certificates and keys and I am just wondering if somebody else can somehow misuse the SHA 256 key in any kind of harmful way?

I don't want to require login for my app, but how do I keep their data separate? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I don't want to have users login or anything, so how would I capture and sort their data to firebase?
Is there anyway to code and have the app recognize people by their device?
Firebase provides an anonymous login feature. You can read more about it here:
https://firebase.google.com/docs/auth/ios/anonymous-auth
Also, if you choose to include a sign in feature later, you can convert the anonymous account into a permanent account while keeping their data.

Encrypting and decrypted data before save in cakephp [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am creating a health clinic and portal application in cakephp. I need to insert encrypted data in database not using base64 encode and decode method and to use in search also. Can someone help me by providing their valuable suggestion.
Have a look at the Cookbook under Models > Callback Methods.
http://book.cakephp.org/2.0/en/models/callback-methods.html
Maybe you need to use beforeSave and afterFind?
You could use beforeSave to encrypt data before it hits the database, and afterFind to decrypt it between the database and controller.

sms confirmation code too long [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to register as a developer, and was asked for my cell phone number.
I got the SMS code, but it is 8 characters long, and the textbox allows for only 6 characters code.
How can I enter the code I've got?
Thanks!
While I was able to reproduce your issue, the SMS that I received while trying to verify my identity at the phone confirmation Page I did also receive a link that served as a secondary mean of verifying it instead of manually inserting the code and works.

How does iOS encrypt and decrypt binaries? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am an iOS developer and was wondering if anyone has insight as to how binary encryption works in iOS? I.e. does Apple sign the app using it's private key to distribute on the app store and then decrypts it with the corresponding public-key when loading the application? Or is it something other than public/private key encryption?
Thanks!
Apple's DRM system for apps, as well as for Music, etc, is called FairPlay.
You can find a lot of infos about this on the net.
Mainly:
FairPlay - Wikipedia
How FairPlay Works: Apple's iTunes DRM Dilemma