I would like to know how I can.
I have a code in java
byte[] key24 = [-17, 55, 99, -54, -20, -99, -79, -34, -123, -100, -118, -42, -111, -108, -62, 123, -17, 55, 99, -54, -20, -99, -79, -34];
byte[] data = [-1, -1, -1, 0, 6, 0, 34, 96];
String algorithm = "DESede";
String mode = "DESede/ECB/NoPadding";
KeySpec confKey = new DESedeKeySpec(key24);
SecretKeyFactory spcKey = SecretKeyFactory.getInstance(algorithm);
Cipher cifermode = Cipher.getInstance(mode);
SecretKey secretKey = spcKey.generateSecret(confKey);
output = cifermode.doFinal(data);
System.err.println("cifrado: "+output);
resultado: [-101, 23, 28, -119, -62, -119, -18, 57]
Does anyone know how I can do the same but in objective C or swift 2.3
Thanks for your time.
Hi, it's TripleDES encryption.
If anyone is interested, this is the equivalent in swift 2.3 using the library: https://github.com/iosdevzone/IDZSwiftCommonCrypto
If they don't know how to use it, they will download version 0.8.3, open the project, hit build, look for the framework and that's it, just drag and copy to your project.