How do I generate SHA256 from a String in libGDX?
It has to work on all platforms (Desktop, Android, iOS, Web), so I can't use Apache Commons Codec or any other third party library...
Any ideas?
Nevermind, I solved this by generating & handling hash values directly in my REST API and not in my libGDX application.
Related
I'm trying to sign a PDF using iText7 the way I did with iText5:
I took the Cert from Windows Personal Store.
I create an IExternalSignature based on the Cert.
I found that X509Certificate2Signature class is not present in iText7.
Because of that I've ported it, however when the Signer method SignDetached is invoked I get that nasty error telling that the classic RSA algorithm is not available because now it is a bit different (RSAcng).
Is there a workaround?
For sure, there must be a reason why the class was not ported to iText7 that I can't understand.
Thanks.
As FaunaDB documentation, it seems that there is no dart API nor REST API. Also, I can't find the FaunaDB package in the Flutter Packages.
Is there any way to use the FaunaDB on the flutter?
I think the easiest way to use Flutter with FaunaDB is to use FaunaDB's GraphQL interface and Dart package graphql_flutter.
I recently managed to read data from FaunaDB using graphql_flutter, and will update this post when I have tested it more.
Currently we don't offer first party support for flutter. You can build a third-party driver for Dart based on our current open source drivers if you'd like. They do use json/http under the hood. If you are targeting android another option might be to fork the java driver and switch out http clients to be android friendly and use a platform channel.
Dart is able to use javascript libraries
How to use JavaScript libraries in your Dart applications
You can simply use the javascript driver
https://github.com/fauna/faunadb-js
https://medium.com/flutter-community/building-a-simple-application-with-flutter-and-graphql-5786764df102
Recently there was a new package published that can help you to use faunaDB with dart/flutter: faunadb_http This library also provides query classes that closely mimic FQL functions.
We have a code in a unity3d game that we wish to protect from decompilation(will be published in ios,android,webgl and unity plugin). How should we protect it? Should we write that part of code as unmanaged plugin(c++)?
It's not possible to release software that can't be reverse-engineered.
This is POSIBLE. Some packages have standart unity packager format. So.. If you use dynamic assets or if you use CodeContainers you need to protect your code.
So what you shoud do:
If you use dynamic assets packages: Make dll's from code or make one controller class.
If you use CodeConainers (JS) make main C# controller. After this you can extends classes or simply call methods.
PS: If you want to secure not code assets, you need make binary encoding. And when you load level or prefab you just decode this asset and use.
You could use obfuscation techniques, which allows you to protect your package from reverse engineering, but just from those, who is not VERY (i am talking about high-level reverse engineers, who could decompile your code and deal with ASM or could decompile your iOS/Android project) interested, in any case for Unity, iOS
You can obfuscate the your source code using the Remiix Obfuscator plugin in unity asset store.
It's free and easy to use and support many platform of build on unity(android, ios).
I am trying to convert code written in Openssl into the iphone’s built in security framework and crypto libraries. Is there an equivalent padding value RSA_PKCS1_OAEP_PADDING in the built in apple functions? Is there a value I can hardcode for my padding variable to get the same value?
Thanks in advance.
I worked around the padding issue by being able to incorporate Openssl so I don't have to use the crypto libraries.
I am using the wsdl2objc Tool to generate the soap Searvice APIs for my webservice.
I am following this tutorial to generate code and use it
http://code.google.com/p/wsdl2objc/wiki/UsageInstructions
&&
http://brismith66.blogspot.com/2010/05/iphone-development-accesing-soap.html
I can generate My WebService APIS successfully, but when i added i am getting 8 Errors and errors are
Expected Identifier or '(' before '=' token
Please tell me what can i Do with it. I am stuffed. the WEBSERVICE URL given in the tutorial work perfectly fine when i compile but mine code giving these errors.
Can anybody Help!
First, don't use version 0.6, use version 0.7 instead. I encountered cache problem under version 0.6. The version 0.7 fixed this problem. So, my web service could use session mechanism to store state information.
Second, not any generated codes with wsdl2objc (or gSOAP) and WSDL will be compiled successfully. In practice, our team encountered some problems about compiling, so finally we implemented a proxy web service which provides an interface with simple class types (ex, int, string, byte) in order to avoid the compiling problems.