Apple's cryptography framework. Contains functions for generating commonly-used hashes and cryptographic functions.
Questions tagged [commoncrypto]
209 questions
0
votes
1 answer
common crypto in swift 2.3 and Xcode8.1
I am trying to implement by using AES Encryption in CryptoSwift. Somebody suggest cryptoswift 500 to 1000 times slower then commonCrypto. Anyone helpme to integrate commonCrypto in my project. Step by step explain?
I am using in XCode8.1 and swift…

Senthil
- 75
- 10
0
votes
2 answers
Encrypting with OpenSSL and CommonCrypto
I'm trying to ultimately encrypt a file with OpenSSL and decrypt with Objective-c CommonCrypto, but before that works I need both approaches to encrypt the same way.
This is what I have:
String to encrypt: "This is the string"
Key:…

user3564870
- 385
- 2
- 13
0
votes
1 answer
Support of AES 256 with GCM not possible in iOS?
Currently the encryption mode supported with AES 256 is CBC. But I want to use AES 256 encryption with GCM mode along with PKCS5Padding / PKCS7Padding.
Do let me know how it can be done ?

BSNayal
- 1
- 1
- 1
0
votes
1 answer
Java cipher update vs IOS CommonCrypto update
I am developing App for Android and IOS
For android I am using "AES/CBC/NoPadding" Cipher and for IOS am using CommonCrypto with same algo/mode/padding as Android
I am initializing the ciphers with common key, for getting same result in both…

Hitesh
- 59
- 4
- 15
0
votes
0 answers
Spring MessageDigestPasswordEncoder encodePassword iOS equivalent?
been breaking my head for the past day,
given a token and salt, I need to generated a hashed token that matches the one produce by Spring's…

David Homes
- 2,725
- 8
- 33
- 53
0
votes
2 answers
Swift SHA1 function without HMAC
i try to get SHA1 working in swift.
without using CommonCrypto since it is not default in swift.
please see https://gist.github.com/wdg/f7c8c4088030c59f0f45 (since it's a little to big to post)
if i run a test case in Xcode:
func test_sha1() {
…

Wesley De Groot
- 71
- 1
- 9
0
votes
2 answers
CommonCrypto to generate encrypted string with 16 char length
It is the first time I try to use encryption so I am not sure if what I need is achievable with the following code.
MY PROBLEM - I need it to generate an encoded string with 16 characters instead of the 64 character that is being generated at the…

GuiSoySauce
- 1,763
- 3
- 24
- 37
0
votes
1 answer
Does the usage of CCCryptor warrant French import declaration certificate?
Would like to get some help from people who implemented encryption in their apps and already passed it to app store.
Our app uses https/SSL and AES256 encryption provided by CCCryptor along with keychain.
According to this message regarding…

Bryan P
- 4,142
- 5
- 41
- 60
0
votes
0 answers
Decrypt aes-256-cbc openssl in C
I have a file encrypted using the following openssl command line:
openssl enc -aes-256-cbc -pass pass:somepassword -p -in inputfile.txt -out outputfile.enc
The following Java code can decrypt this fine:
byte[] encrypted =…

user456137
- 97
- 2
- 5
0
votes
0 answers
Swift 2.0 Encryption and Decryption
I'm referring to the code of @karthik Prabhu in this question Issue using CCCrypt (CommonCrypt) in Swift
who proposes solution to encrypt and decrypt strings in swift 2.0
i've copied, paste the code for encrypting and decrypting (using aes, 128 bit…

Se_sa93
- 1
0
votes
1 answer
SQCipher : OpenSSL to CommonCrypto
Just installed the last version of sqlcipher library into my iOS project.
So I switch from OpenSSL to CommonCrypto (the sqlcipher iOS tutorial has changed too).
Now, I get a "DB Error: 26 "file is encrypted or is not a database". It seems the new…

alex.bour
- 2,842
- 9
- 40
- 66
0
votes
1 answer
Decrypting AES in Objective C
I am new to encryption
The problem:
I am given a set of encrypted strings and I need to decrypt them to show to the mobile client user. For android, it decrypt fine and i am using the following method "decrypt". For iOS, I am having a lot of trouble…

xiaowoo
- 2,248
- 7
- 34
- 45
0
votes
2 answers
Decrypt a base64 string using C# generated by iOs CCCrypt function using AES
Could someone please help decrypt the base64 string generated by iOS code below into its C# equivalent.
I am trying to end up with "Meet me at the secret location at 8pm" within c#.
iOS generated the following encryption:…

TriCron
- 141
- 2
- 11
0
votes
1 answer
How to port OpenSSL-based DES decryption method to CommonCrypto?
I have the following method, which I would like to port to a CommonCrypto-based approach, but I am completely stuck. Any help is highly appreciated.
- (NSString*) decryptCiscoPassword:(NSString*) encPassword
{
NSUInteger i, k = 0;
NSData…

Fabian Jäger
- 447
- 1
- 5
- 12
0
votes
1 answer
How to extract NSString value from executable
I'm encrypting data for an iPhone app using the CommonCrypto libraries. The data is local to the application. The encryption key is hardcoded in the code using an NSString.
I wonder if there is a way to access the value of this NSString from the app…

zago
- 532
- 2
- 10