aes encryption

  1. KMatle

    B4J Code Snippet [B4x] AES-256 encryption with salt and iv (works with all platforms like php, .net, etc.)

    This example is based on agrahams encryption library: Encryption Lib 1. Generate a 32 byte pw (just call the sub) and store it 2. Encrypt the data by calling AES_Encrypt. Return is a byte array or a base64 encoded string 3. Salt is a random value which is added at the beginning of the encrypted...
  2. 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...
  3. 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...
  4. ALBRECHT

    Android Question aes encryption with key and iv => decryption server side

    Hello, After looking for some days the right way to decrypt and check via my API (in ASP vbscript) from a remote server, a string sent by poststring from my APP and encrypted with AES 128bits with key and iv specific , I can share my result with you : App Side Sub : Sub...
  5. 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...
  6. N

    iOS Question Error decoding data as string AES Decryption

    Please am getting this error when decrypting an encrypted string using IV and . "Error decoding data as string." When I Use Dim result As String= BytesToString(data,0,data.Length,"UTF-8") <B4IExceptionWrapper: Error Domain=caught_exception Code=0 " Error decoding data as string."...
Top