B4i Question [SOLVED] B4i KeyGenerator Problem - mmieher    
Feb 4, 2019Porting B4a to B4i...
I am including iEncryption 1.02 in my project. The line "Dim kg as KeyGenerator" says "Unknown Type". I see lots of examples where other people...
link:
I've been hanging around in here for twelve years and I think you are the first person I have e...
link: I've been hanging around in here for twelve years and I think you are the first person I have ev...
link: AES.Key = hash
AES.Key = temp ' Erel
AES.Mode = CipherMode.ECB...
B4A Question Save the Keygenerator key in random access file - shashkiranr (first post)    
Feb 22, 2015Hi Erel and Peter,
Thank you for your reply. I am using the keyvalueStore class. I corrected my mistake. I was not saving the key but was saving the key generator as a whole. I corrected it and now...
link: Hi All,
I am trying to save the generated key from key generator in a random access file. when...
link: Why don't you use KeyValueStore class?...
link: Hello,
Please post your code here. It sounds like either a missed key or a spelling mistake...
B4i Question Porting of B4A AMAZON WEB SERVICES V4 signature calculator - JackKirk    
Jun 25, 2017 As KeyGenerator
Private wrk_bc As ByteConverter
Private wrk_byte() As Byte
wrk_key... understanding of encryption etc.
They rely on the MessageDigest, Mac and KeyGenerator objects... procedure creates a HMACSHA256 of a supplied string for a given key
'
'Input parameters are:
'...
link: - it shows my total use of the Mac object.
What about the KeyGenerator object?
Thanks......
link: only looking for B4i equivalents of B4A Mac and KeyGenerator objects.
Thanks......
B4J Question AES128 ECB Decrypt - aaronk    
Aug 21, 2019 is: decrypted = C.Decrypt(decrypted, kg.Key, False)
Dim dataToDecrypt As String = "�q�!DAZ��R��:f/�Ŝ��h�U�0h�V��ƅHw��s�Č)�o�yZ��%v��_,"
Dim kg As KeyGenerator
Dim C As Cipher
Dim...("UTF8")
Dim Key As String = "0123456789ABCDEF" ' this is the same key that encrypted the string that was sent
kg.Initialize("AES")
kg.KeyFromBytes(Key... on the NoPadding part
decrypted = C.Decrypt(decrypted, kg.Key, False)
Log("Decrypt...
B4i Question Encryption / iEncryption - toro1950    
Aug 15, 2024 a string with a password and decrypt it
con B4A
Sub EncryptAES(strDataToEncrypt As String, strKey As String) As String
Dim SU As StringUtils
Dim kg As KeyGenerator
Dim C As Cipher
Dim... As String, strKey As String) As String
Dim SU As StringUtils
Dim kg As KeyGenerator
Dim C... kg As KeyGenerator, basically KeyGenerator is not supported iEncryption.
How to solve the problem....KeyFromBytes(md.GetMessageDigest(strKey.GetBytes("UTF8"), "MD5"))
C.Initialize...
B4J Code Snippet [B4x] AES-256 encryption with salt and iv (works with all platforms like php, .net, etc.) - KMatle    
Feb 19, 2021   
(14 reactions) = GenerateSalt(32)
Dim IVb() As Byte = GenerateIV
Dim kg As KeyGenerator
Dim C... MessageB() As Byte = m.Get("message")
Dim kg As KeyGenerator
Dim C As Cipher...
link: = iv.GetBytes("UTF8")
Dim kg As KeyGenerator
Dim C As Cipher
Dim SU...
link: ("UTF8")
Dim kg As KeyGenerator
Dim C As Cipher
Dim SU As StringUtils
kg...
link: () As Byte = iv.GetBytes("UTF8")
Dim kg As KeyGenerator
Dim C As Cipher...
B4J Code Snippet Create JWT tokens and verify them - Addo    
Jan 31, 2025   
(7 reactions), key As String) As String
Dim hmac As Mac
Dim KG As KeyGenerator
KG.Initialize(ALGORITHM) ' Initialize the KeyGenerator with the algorithm.
KG.KeyFromBytes(key.GetBytes("UTF8...
jStringutils library
here is the code snippet.
Sub Process_Globals
Dim SECRET_KEY As String = "YourSecretkey123456" ' Your secret key - KEEP THIS SECRET! Never expose it in...." & payloadBase64, SECRET_KEY) ' Calculate the signature.
Return headerBase64 &...
B4i Question use encryption lib with iencryption - tufanv    
Oct 2, 2017
Dim kg As KeyGenerator 'kg As KeyGenerator
kg...
kg.KeyFromBytes(secret.GetBytes("UTF8")) 'encode string "secret" to an array of Bytes using UTF8
m.Initialise("HmacSHA512", kg.Key) 'initialize m using HmacSHA512 algorithm and the secret key
m.Update(data... the loaded data using the secret key, return the calc signature data
End Sub
my keyvaluestore...
B4i Question AES encryption with salt and iv - aeric (first post)    
Jul 11, 2023For B4A, everything is the same as KMatle's Code Snippet. Use KeyGenerator to generate a key.
Dim datas() As Byte = CI.Encrypt(data, kg.Key, True)
Different is in B4i, use:
Dim iOption As Int = Bit.Or(CI.OPTION_PKCS7Padding, 0)
Dim datas() As Byte = CI.Encrypt2(data, passB, "AES"...
link:
For B4A, everything is the same as KMatle's Code Snippet. Use KeyGenerator to generate a key...
link: b4i don't have KeyGenerator as Erel said here :
https://www.b4x.com/android/forum/threads...
B4J Question Which library to use for HMAC-SHA256 - tried jB4XEncryption & B4XEncryption - personalapps    
Oct 6, 2024 'UNKNOWN TYPE ERROR
Dim k As KeyGenerator 'UNKNOWN TYPE ERROR...I am trying to generate sign for an API using HMAC-SHA256
I have jB4XEncryption ticked but I still get 'unknown type error 'UNKNOWN TYPE ERROR
I also tried copying the B4XEncryption lib to the internal library folder of b4j but I still get the error:
Sub GenerateSign(client_id As String, access_token As String, timestamp As String, secret As String) As String
Dim key As String...
Page: 1  
2  
3  
4  
5  
6  
7