CryptoPill icon indicating copy to clipboard operation
CryptoPill copied to clipboard

Core Secret's crypto code.

Results 5 CryptoPill issues
Sort by recently updated
recently updated
newest added

``` objc + (NSData *)secretBoxOpen:(NSData *)data key:(SecureData *)key { if (!data || [data length] < crypto_secretbox_noncebytes() || !key || [key length] != crypto_secretbox_keybytes()) return nil; // Split it into nonce...

Some headers have changed, some removed, some added. Bit rot and all that. I have tweaked my version of the project, but also the libsodium.sh doesn't leave any libs in...

When there is a problem encrypting or decrypting SecretBox returns nil. This is fine but it would be good to include an NSError out which lists why. For example, instead...

I added a CryptoPill podsec to CocoaPods/Specs so projects can do: `pod 'CyptoPill'` (see https://github.com/CocoaPods/Specs/blob/master/CryptoPill/1.0.1/CryptoPill.podspec) to include. However its using a branch of libsodium at https://github.com/mochtu/libsodium-ios which is on version...