Comments (23)
hi,
thanks for using my plugin.
unfortunately, there is no implementation for ios right now due to the fact i dont have Mac computer for the ios programming.
that will be done before Feb 10, is that ok for you?
from cipher2.
Yes, that's fine. Please let me know if I can be of any assistance (I am using a Mac). I will gladly test your code as soon as possible. Mid-February is really a deadline for me. Thanks again for your quick reply.
from cipher2.
en, there is no any MAC computer on my hand right now
i will try to borrow one and done that as soon as possible
just give me a star after i done that part, thanks
from cipher2.
I will gladly report when it works on iOS and give you a BIG star!
from cipher2.
Have you checked: https://github.com/krzyzanowskim/CryptoSwift
Please look at their AES example, it sounds like a swift call like the one that follows could be the answer. What do you think?
let decrypted = try AES(key: key, blockMode: CBC(iv: iv), padding: .pkcs7).decrypt(encrypted)
from cipher2.
I created a macos system on vmware yesterday, and finished the ios support today.
it works now, just try it
from cipher2.
from cipher2.
Got it to work by doing the following:
- Following the Installation steps explained within https://github.com/krzyzanowskim/CryptoSwift
- Then editing Podfile an adding pod 'CryptoSwift' and running pod install on the terminal
- Then back to Xcode and Run - Voila!
Thank you so much again!
from cipher2.
Just noticed that the App will crash if the decrypted provided string isn't of 24 characters exactly.
from cipher2.
Actually a bit worse than that. If the decryption fails (for any reason), the App crashes silently (no error is thrown)
from cipher2.
@Peter-717
the exmaple code in the plugin works good on my machine
could u give a sample input for crash?
for now, i haven't do input data validate in the plugin, and you have to check the input data before call the method. i will add the validation code later
from cipher2.
@Peter-717
en, it should add CryptoSwift Library by itself
why u need to add CryptoSwift Library>?
from cipher2.
from cipher2.
Please try to run the following code:
class _MyHomePageState extends State {
String plainText = '我是shyandsy,never give up man';
String key = 'xxxxxxxxxxxxxxxx';
String iv = 'yyyyyyyyyyyyyyyy';
String encryptedString;
String decryptedString;
@OverRide
void initState() {
// TODO: implement initState
super.initState();
_encrypt();
}
Future _encrypt() async {
encryptedString = await Cipher2.encryptAesCbc128Padding7(plainText, key, iv);
print(encryptedString);
}
Future _decrypt() async {
decryptedString = await Cipher2.decryptAesCbc128Padding7(encryptedString, key, iv);
print(decryptedString);
encryptedString = 'Hello';
decryptedString = await Cipher2.decryptAesCbc128Padding7(encryptedString, key, iv);
print(decryptedString);
}
The App crashes as soon as it tries to decrypt the string 'Hello'.
Hope this helps. Thanks!
from cipher2.
from cipher2.
from cipher2.
from cipher2.
from cipher2.
@Peter-717
the new version 0.2.0 published
the exception can be handled for both ios and android
https://pub.dartlang.org/packages/cipher2
from cipher2.
from cipher2.
from cipher2.
@Peter-717 any feedback?
from cipher2.
from cipher2.
Related Issues (20)
- 可不可以更新256位的Key啊
- ios上编译报错“no such module 'CryptoSwift'” HOT 3
- Add byte array api
- 您好,希望可以添加 AES ECB模式加密(NoPadding)
- java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; HOT 1
- Is it possible to add aes-256-cfb encryption support?
- 可否实现 des3加密 HOT 1
- 是否支援AES 256?
- 可否要求支援512 , openssl 加解密以及 sha 512, sha3 512, hmac?
- 希望支持aes-128-ctr
- 'cipher2/cipher2-Swift.h' file not found
- as上运行android真机报错:java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; HOT 2
- xcode 11.2.1 swift版本5.1.2运行报错
- 希望支持下 AES/ECB/PKCS5Padding
- org.jetbrains.kotlin:kotlin-gradle-plugin version? HOT 6
- aes的gcm啥时候可以支持iOS
- ASE256加密
- java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed D:\flutter_workspace\dds\develop\dds_app\build\cipher2\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found. HOT 1
- project ':cipher2' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 HOT 1
- Incompatibility with higher .gradle builds. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cipher2.