rsa encryption

  1. KMatle

    Android Code Snippet [B4x] Generate RSA private/public key in php and prepare it to use in B4x

    Sometimes it makes sense to generate pricat/public key pairs for clients on the server side by code. Here's an example how to do this in php (OpenSSL must be installed as it usually is): $keys = openssl_pkey_new(array("private_key_bits" => $4096,"private_key_type" => OPENSSL_KEYTYPE_RSA))...
  2. K

    Android Question Saving RSA Generated Key Into KeyStore

    Hello, I'm Kinda New To B4a and for sure using Keystore. (never used before) I'm having a problem where I'm trying to save the new generated pair of RSA, 2048 keys into the KeyStore of where I believe that used to keep the private key safe, and constant where the public key can be saved on a...
  3. KMatle

    B4J Tutorial [B4x] RSA sign & verify messages (extra: with corresponding php code)

    This little tutorial is about signing and verifying data you send/receive between apps (= all "programs", even websites). You can use it in B4A without a change (I don't know how B4i works, but I assume there are similar libs). You should know how RSA works. If not, take a Google search and you...
  4. Pablo Torres

    B4J Question RSA Encription problem

    Hi, I have the following code Dim su As StringUtils Dim Bconv As ByteConverter Dim ForeignPubKeyString As String Dim ForeignPubKeyBytes(0) As Byte Dim ForeignPrivKeyBytes(0) As Byte Dim ForeignPrivKeyString As String Dim...
Top