I have seen an example of encrypting a string with a Java Midlet, using a public key which is a byte array.
I am not able to do that on a BlackBerry, because there is no X509EncodedKeySpec and Cipher classes to hold the public key.
How is this done on BlackBerry?
RIM's BlackBerry knowledge center has some useful articles about this:
How to - Use Basic Encryption
How to - Use Advanced Encryption
Related
In the Gnupg there is gpg implementation for different platforms, even android, but not IOS.
Is there anyway I can use GPG in my IOS app?
I am looking for the very basic operations as described in this title (Create keypair, List Keys, Import public key, encrypt, decrypt)
I found zero material out there except for apps that use gpg within (which is what I want to accomplish)
any directions are valid
lets talk, thanks
For iOS there is ObjectivePGP framework that covers that functionality, you may want to use it to incorporate PGP in your application.
PGPro and Privacy are both free softwares, they rely on ObjectivePGP and they work like a charm. Maybe there are some limitations in the support of elliptic curves but RSA just works. Please ensure that you don't mistakenly export both your public key and your secret key when using PGPro when you only want to share your public key with someone else who would like to send you encrypted messages.
N.B: Please note that I don't recommend you to encrypt/decrypt messages under proprietary operating systems because it requires you to blindly trust the corporation that provides the operating system as it can't be audited by an independent organization. I recommend you to install a GNU Linux free software distribution like Debian (or Postmarket OS but it's not very mature yet) on your phone instead. As it might be unclear for some people, I highly discourage the use of OS X, iOS, Microsoft Windows and even Android to encrypt/decrypt messages.
I am currently searching for an iOS GnuPG client app as well and found this page Uwes Blog that lists and compares four different apps (iPGMail, oPenGP, Secumail, NouveauPG).
I'm creating an app using yodlee api, so far everything good, but right now, I'm having this block related to the PKI feature of yodlee. I'm not able to encrypt the data using "RSA/ECB/PKCS1Padding" as they request, all I found so far are java examples, anyone with a snippet of code, or a reference to make this possible on ruby?
I guess you are referring to this manual to integrate Yodlee API with PKI feature.
Have a look into the ruby's OpenSSL classes. Encryption using RSA is possible with the OpenSSL::PKey::RSA class, see also this intro doc. Basically you have to load the public key returned from the API, and use the public_encrypt method to encrypt the data and hex-encode it in the end. The encryption uses the PKCS1_PADDING by default which is just what you want.
A complete example is available in this SO answer.
I could find an answer from 2013 that iOS does not support ECC based encryption and a recommendation to use OpenSSL. I see at the Security Framework Reference some definitions for TLS_ECDH but it is not clear to me that ECC based is fully supported. I need to be able to generate a key pair based on secp256r1 and use the other party 64 byte public key to generate a shared secret by using ECDH. I also need to be able to use ECDSA to sign and verify signatures.
This is for an open source project which I am starting, so ideally I would like to use other open source works that I can include.
For the curious: I'm looking to encrypt an AES key using RSA. I will then use AES key to encrypt/decrypt the user's data.
My application need to connect to critical data on our server, and i want to encrypt the link to the server, so, How could I do that?
Thanks a lot in advance,
Use bouncy castle library for encrypt and decrypt. For more information look this article, How to encrypt / decrypt with AES from Bouncy Castle API in J2ME applications.
Also look this discussion on Nokia fourm, Data encryption/decryption in J2ME.