encryption

  1. J

    iOS Code Snippet RSA - Encryption and key generator (GPT-4 Experiment)

    Disclaimer: This post was written entirely with GPT-4 model Version: 0.1 Greetings, The absence of an RSA library in B4i, particularly for generating RSA key pairs and adjusting encryption key size, has been a personal challenge for me. Despite not being well-versed in Objective C, I was...
  2. N

    Android Question B4x Using external libraries for encryption

    Hi, From what I have been able to glean from the forum there is an encryption library based on bouncycastle and it has been updated to 171. I need access to more than AES and RSA so my question is how to do this in the most time efficient way? I could write a series of functions in Dart...
  3. M

    iOS Question [SOLVED] [B4X] Decode AES encoded STRING

    Hi everyone, I need to crypt a string with a tool (not the app) and then be able to decode it back from the app. example tool: https://encode-decode.com/aes256-encrypt-online/ 1. Crypt a text with the above tool 2. Copy the output string (e.g. Kj7ytYpr5Z/g93JaBEUo9Q==) 3. Use that string in the...
  4. Swissmade

    iOS Question Using B4XAES Lib

    Hi all, I use the nice B4XAES library in B4J and B4A. In the post https://www.b4x.com/android/forum/threads/b4x-b4xaes-v2-0-encryption-decryption-b4xlib-b4a-b4i-b4j.141536/ it says that the lib can also be used in b4i. Reason to use this is of the good Encryption and has to be compatible with...
  5. james_sgp

    Android Question Data security, in remote SQL database

    Hi, I`m developing a B4X app and will be storing/accessing potentially sensitive data from a remote SQL database using PHP (I can`t use RDC, as I`m using Godaddy server). I want to make sure the data is secure, Is encrypt the data in the app and send (encryption password, would be in the...
  6. KMatle

    B4J Library bcprov-jdk18on-171 (BouncyCastle) update (encryption)

    Tested under B4J Java 11 agains OpenSSL (PHP): AES256 RSA (creating/using keys including signing/verifying) Hashing (HMAC, SHA1, 256 and 512) via Agraham's Encryption library Download: https://www.bouncycastle.org/download/bcprov-jdk18on-171.jar
  7. Mark Turney

    Web3x (blockchain) Video Series Poll

    Who would like a few video tutorials on how to use the new Web3x library (as I learn each part)? I have been immersing myself in this technology and find it a potentially game changing tool. I completed the Blockchain Specialization from University of Buffalo (SUNY) via Coursera, so I have...
  8. LucaMs

    Share My Creation [Source code][B4X][B4XPages] lmPWsManager

    Source code of my passwords manager. [ NOTE. It is true that it is possible to save passwords in browsers but: 1 - I do not trust 2 - if I had to change PC? 3 - the passwords of the apps (for example banking)? ] It allows you to manage a SQLite database containing the passwords of your website...
  9. Martin Larsen

    iOS Question App Store asks for Export Compliance Information

    When submitting my app, App Store asks for Export Compliance Information. The question is asked here but little information is given. Apple's info page says: Use of encryption includes, but is not limited to: Making calls over secure channels (i.e. HTTPS, SSL, and so on). So I guess the answer...
  10. nwhitfield

    iOS Question RSA support in B4i

    Having just implemented some stuff using RSA encryption and signing in my back end API, and in a B4A app that uses it, I'm hoping to add similar to the iOS app. However, on looking, it seems that RSA support on B4i is rather more limited. The main support seems to be the iRSA library, but that...
  11. LucaMs

    Android Question [SOLVED] Data encryption - B4XEncryption

    I tested with B4J the code attached to the B4XEncryption thread: Dim encryptedData() As Byte = EncryptText("confidential", "123456") Log(DecryptText(encryptedData, "123456")) It takes about 2.3 / 2.4 seconds on my PC, to encrypt and decrypt that short text, using that short password. It is a...
  12. Peter Simpson

    The art and science of password hashing

    Hello all, For a long time now whenever I create a bespoke database driven solution for a client I always make sure that the users database passwords and email addresses are encrypted using BCrypt with salt, that way I can tell my clients that their users details are securely stored in their...
  13. KMatle

    B4R Tutorial Using RSA on a ESP32 via Inline C

    Here's nother example how to use RSA on a ESP32 based on this documentation: https://tls.mbed.org/kb/how-to/encrypt-and-decrypt-with-rsa Notes: - If the filesystem does not work, you need to format it with fs.format once. - I've just copied the Public and Private Key from another app - Both...
  14. Alexander Stolte

    Android Code Snippet [B4X] RSA Encrypt and Decrypt

    Hey, i build a auth method for my app to protect my API and one of this step is to signed requests to the api to ensure that every request comes from my app. RSA is the best method for that, because this is not a hash, so that the same input is ever the same output. The API knows the Private...
  15. KMatle

    Wish ESP32: AES & RSA encryption (C code attached)

    I've found examples in C but I'm not experienced with inline C. Could someone adapt these examples to usable inline code? RSA https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/mbedtls/mbedtls/rsa.h AES...
  16. carlos7000

    Android Question Private and Public key cryptography

    Hi! I have been looking in the forum for an example that uses a public key encryption system and private key. The closest I've been is with this post. https://www.b4x.com/android/forum/threads/base64-and-encryption-library.6839/#post-69584 In the example, the Keygenerator generates a key and...
  17. KMatle

    Android Tutorial [B4x] AES Encryption (lessons learned & best practice)

    Last weekend I migrated my XAMPP test environment (Apache/PHP/MySql). It came with PHP 7.x. Yesterday I wanted to test one of my Apps using AES and Mcrypt for it in PHP but it didn't work no more. I noticed that MCrypt was deprecated anyway and even was removed due to security and other issues...
  18. igpf

    Android Question b4a encryption / pkcs7 16bit keyblock

    hi, not sure where to post this question. but i'm trying to "AES/CBC/PKCS7Padding" signature with 16 bit block, it has to be specific, i've been looking at all the forums, but just don't seem to make it happen. obviously, i'm new to encryption methods, not to b4a. i'm trying to connect to a...
  19. KMatle

    B4J Tutorial [B4x] RSA example (asyncstreams)

    - Changed to B4x as the subs can be used in B4A, too - "Send File" added (new Button to send a file to the other client) This tutorial is based on Erel's Asyncstreams example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/ RSA basics...
  20. cenyu

    Android Example RC4 encryption to transfer data between Android and PC

    Hi, On one of my projects, I had to transfer sensitive data from Android to PC but - with RC4 encription. I wrote a little code that I want to share with you... Maybe Android supports RC4 encryption in some of its libs, I'm not sure, but this code may be usefull for someone. This code is not...
Top