My data is GE3e8Qhyjk6rPiNuUJpDy/hHaCwcKj13fA9tN+ICYQM=
The data is encrypted with AES 128 CBC with 1234567890123456 key without IV
I cannot decrypt that with online sites
But cannot decrypt that in B4j
My code is:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			The data is encrypted with AES 128 CBC with 1234567890123456 key without IV
I cannot decrypt that with online sites
But cannot decrypt that in B4j
My code is:
			
				B4X:
			
		
		
		    Dim kg As KeyGenerator
    Dim C As Cipher
    Dim decrypted() As Byte
    Dim BConv As ByteConverter
 
    decrypted = b
 
    Dim Key As String = "1234567890123456" ' this is the same key that encrypted the string that was sent
    kg.Initialize("AES")
    kg.KeyFromBytes(Key.GetBytes("UTF8"))
   
    C.Initialize("AES/CBC/NoPadding") ' not 100% sure on the NoPadding part
    decrypted = C.Decrypt(decrypted, kg.Key, False)
	
			
				Last edited: