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) As Boolean If...
Public Sub IsValid(Data As String) As Boolean
Dim Pattern As String = "^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
Return Regex.IsMatch(Pattern, Data)
End Sub
B4XBase64 encoding and decoding algorithms were developed using B4X code only, without external libraries (StringUtils). Methods: . URL encoding and decoding . Image variable encoding and decoding . Text variable encoding and decoding . Image file encoding and decoding . Text file encoding and...
This document describes the commonly used base 64, base 32, and base 16 encoding schemes. It also discusses the use of line-feeds in encoded data, use of padding in encoded data, use of non-alphabet characters in encoded data, use of different encoding alphabets, and canonical encodings...