encrypt / decrypt

  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. KMatle

    B4R Tutorial Updated B4R-AES256 example (compatible with B4x, php and all other platforms)

    This is an updated example how to en-/decrypt data with AES256. Libs needed: jRandomAccessFile only Notes: - As far as I know, the ESP32 doesn't support padding like PKCS5/7, so I had to do it on my own - Other Cyphers support padding - AES is a block cipher, so we have to build one block...
  3. A

    Android Question Problem with Encrypt / Decrypt

    Hi all. My app sends requests to the server and in this request some data is encrypted (for example device id, username, etc...) It works fine since March 2020 and today one of my customer can't register with the server because string encrypted in my app on his LG X screen phone with Android...
  4. N

    Android Question Read a big file an encrypt this using RandomAccessFile(RAF)

    Hi Guys i want to make a file encrypter ... normally for larg files i get OutOfMemory error ... how i can use RAF for this work ? Sub ReadFile(Dir As String, flname As String) As Byte() Dim out As OutputStream out.InitializeToBytesArray(100) 'size not really important...
  5. P

    B4J Question Encryption method to store sensitive information

    Hello all, Happy New year I am designing an application that has a need to store sensitive information ( CC with CVV ) for recurring payments. ( Yes, I know we should avoid this where possible ) I have looked at various methods of doing this. 1. Encrypt data in B4J and store it in the DB...
  6. M

    Android Question Help implementing libsodium in b4a

    I want to use libsodium in my android application to create a secure connection between client and server. The huge advantages of libsodium in comparison to all other encryption libarys are features like password hashing and more modern high-level cryptographic tools . My main focus besides...
  7. carlos7000

    Android Question Encrypt decrypt using RSA

    Hello everyone I am trying to create a simple application that allows to send and receive messages in a secure way, using rsa or another similar system. I wrote this little code to see if it was possible to create a pair of keys (one public and one private), save them and use them again later...
  8. A

    iOS Question Decrypt a string encrypted on ios

    Hi, I'm working on conversion my b4a app to b4i and have encrypt / decrypt problem I already have a code that does encryption / decryption on Android and on VB.NET on my server. b4a Sub Encrypt(dataToEncrypt As String ) As String Dim kg As KeyGenerator Dim c As Cipher Dim B64 As...
Top