B4A Library [B4X] Library Base64 encode/decode Image and File library - MarcoRome    Aug 26, 2024   (33 reactions) Updated Library https://www.b4x.com/android/forum/threads/b4x-library-base64-encode-decode-image.../android/forum/threads/base64-encode-decode-image-library.31031/ ) "...in attached the library for... B4A Library Base64 and Encryption library - agraham    Apr 11, 2016   (17 reactions)   tags: Security, Lib Here's a library that, for the moment, can perform Base64 encoding and decoding and symmetric algorithm encryption and decryption. Tested symmetric algorithms are DES, Triple DES and AES (Rijndael). As the Java encryption rountines are all byte array oriented you will need my ByteConverter library to run the demo. EDIT :- Version 1.1 posted. Asymmetric algorithms, Signing and MACs now implemented. See post#2 for details.... B4R Code Snippet Base64 decoding - Erel    Sep 8, 2019   (8 reactions) = DecodeBase64(Result, "RGVjb2RpbmcgQmFzZTY0IHN0cmluZyB3aXRoIEI0UiEhIQ==") Dim bc As ByteConverter... the length of the decoded data Sub DecodeBase64(Result() As Byte, Text() As Byte) As UInt Dim rawlength... + 1 Loop four(i) = GetBase64Index(Text(si)) Next Result(ri) = Bit... Loop Return length End Sub Sub GetBase64Index(u As Int) As Int If u = 43 Then Return 63... B4A Code Snippet [B4X] Convert Base64 To String, String To Base64 and Validate Is Base64 - Lucas Siqueira    Mar 21, 2025   (8 reactions) Farias (code isBase64) remember: Convert bitmap to base64 use Base64EncodeDecodeImage from... Sub isBase64(text As String) As Boolean If Regex.IsMatch("^({4})*({4}|{3}=|{2}==)$"... End Sub Sub convertStringToBase64(text As String) As String Private su As StringUtils Private b() As Byte = text.GetBytes("UTF8") Return su.EncodeBase64(b) End Sub Sub convertBase64ToString(text As String) As String Private su As StringUtils Dim b() As Byte = su... B4A Library Base64 encode/decode image library - Peter Simpson    Oct 8, 2018   (16 reactions)   tags: Base64, B4A I noticed the other day that there were quite a few questions regarding decoding base64 image stings, so I quickly put together this simple but effective base64 encode/decode images library for... Base64Con As Base64Convert
To get an encoded base64 data stream, and return it as an bitmap ready to load... As String) As Bitmap
Or
To get an image file, and encode it into an base64 data stream, ready to save... B4R Tutorial ESP32: AES256 encrypted & Base64 encoded post message to and from PHP - KMatle    Feb 6, 2023   (1 reaction) Example: - AES256 encrypt a message with IV and Salt - Base64 encode it - send a http post request to a php script - decrypt in php - send back a AES256 encrypted and Base64 encoded message to... $encrypt_method = "AES-256-CBC"; $total=base64_decode($string); $id=substr($total, 0, 8); $salt=substr($total, 8, 32); $iv=substr($total, 40, 16); $string=Base64_Encode(substr..., $encrypt_method, $pw, 0,$IV); $enc=Base64_encode($id.$Salt.$IV.Base64_decode($enc... B4J Question [BANano] [SOLVED] Putting a border on base64 images - Mashiane    Aug 21, 2024 ();
// Set the image source to the base64 string
img.src = base64Image;
// Once the image...);
// Get the new base64 image string from the canvas
const newBase64Image = canvas... B4R Code Snippet Base64 en-/decode via inline C - KMatle    Jan 31, 2022   (3 reactions) (255) As Byte
Public b64decoded_len As ULong
Add to your code and call the Base64 sub
Sub Base64... Sub
#if c
#include "mbedtls/base64.h"
void Base64Encode (B4R::Object* o... B4A Code Snippet Check if a string is Base64 (isBase64) - Douglas Farias    Dec 2, 2018   (13 reactions) Hi all. I found this example in some old folders on my pc and decided to share here. it is a simple code to check if a string is base64 hash. This example use a regex. Sub isBase64(text As String... ' TESTA A STRING CODIFICADA COM BASE64 Log(isBase64("ZG91Z2xhc2Zhcmlhcw==")) '=douglasfarias ' TESTA A STRING COM TEXTO Log(isBase64("Test string"))'=dont is a base64 string The result log is true false Credits: stackoverflow, Douglas Farias and... B4A Library Decrypter - De-/Encrypt String to base64 (including compatible php code to de/Encrypt) - DonManfred    Feb 6, 2017   (22 reactions)   tags: encrypt b4x and php (encrypted As String) As String
Decode a encrypted base64 string and return the decrypted string
encrypt (toEncrypt As String) As String
Encrypt a string and give back an encrypted and base64 encoded... Page: 1   2   3   4   5   6   |