1. start a new b4j project
2. add jB4XEncryption library
3. add the following sub :
Sub compileError(src()As Byte,pass As String) As Byte()
Dim enc As B4XCipher
Dim retVal() As Byte
Try
retVal= enc.Decrypt(src,pass)
Return retVal
Catch
''
End Try
End Sub
4. try to compile . I'm getting the error in the question header
5. exactly the same code works ok in b4a. what's the problem ?
thank you very much !
just in case someone search for same issue and got himself here - the answer you gave me is :
In B4J you need to download the jar file: https://www.bouncycastle.org/download/bcprov-jdk15on-154.jar and copy it to the additional libraries folder. In your code you should add the following module attribute:
#AdditionalJar: bcprov-jdk15on-154