08-27-2013 12:39 AM
I am so disapoited now after a long time searching but got nothing to help me resolve this issue.
I have a reference code fo C# now I have to make the same encrypted string with this.
public void ClientCryptoHelper()
string rsaPublicKeyXml = [XML format Key];
CspParameters cspParams = new CspParameters();
cspParams.ProviderType = 1; // PROV_RSA_FULL
cspParams.Flags = CspProviderFlags.UseArchivableKey;
cspParams.KeyNumber = (int)KeyNumber.Exchange;
throw new Exception("ClientCryptoHelper has not been initialized with the RSA public key XML");
// create encryptor
this.m_rsaProviderEncrypt = new RSACryptoServiceProvider(cspParams);
public string EncryptAndConvertToBase64(string toConvert)
Does BB10 Native support this Encryp Method.
08-27-2013 10:09 AM
This is the landing page for security and encryption for native BlackBerry 10 developers:
You probably want to give that a read. It's important to know what you are doing in order to build proper security, otherwise you can be vulnerable to attacks you haven't considered.
09-04-2013 09:38 AM
What exactly are you hoping to learn? The Security Builder API is quite powerful. https://developer.blackberry.com/native/documentat
09-04-2013 09:44 AM
I think what he is trying to say is that the documentation is incredibly scarce and samples non-existant.
Parameters nd functions if explained are confusing to say the least. The documentation layout is also circulatory in a lot of places.
You only have to do a search on these threads to see that the documentation could do with some (read: a lot of) work in this area.
09-06-2013 03:40 AM
Thank BBSJdev, your comment also is my problem, this Document seem lead us around and show out alot of lacked-description-api to use.
I even use this solution, but when I make a double check with C# code, it doesn't work properly, so I think this is not a solution.
With alot of effort, I use this exit way to solve my issue, I just use the javascrip function from this Page, integrate into my QML file, call the encrypt method from .cpp file and receive result through Q_INVOKABLE method. I do not be happy with this, I still research a fully Native-Cascade-Solution.