0

Need some help. I am working on encryption, where I need to implement crypto_box_keypair() or decode a hex string to a byte array so that you have to get a public and private keys. I also need to call crypto_box(m,n,pk,sk) for encryption.

I have never worked on encryption, I struck with how to implement. If you have any sample code, could you please send. which will be very help full. I just need to encrypt and decrypt string in ios.

Thanks in advnce.

Andrei V
  • 7,306
  • 6
  • 44
  • 64
user3197071
  • 41
  • 1
  • 5
  • Interestingly, very recently there have been three questions about "lib sodium" and "crypto_box". What course or common project is this from? – zaph Jan 15 '14 at 13:05
  • Hi Zaph, I found this as secure encryption and thought to implement on encrypting and decrypting simple string in iOS. If you can please help . – user3197071 Jan 16 '14 at 04:19
  • For general encryption the usual method is to use Symmetric Key encryption with the AES algorithm. Public Key encryption is generally used to encrypt small amounts of data, usually symmetric keys. But I am still wondering why suddenly there are three questions involving "lib sodium" and "crypto_box" – zaph Jan 16 '14 at 05:06

0 Answers0