B4J Question Encryption library is not showing in B4J

Alexander Stolte

Expert
Licensed User
Longtime User
Hey,

since i update B4J to the newest version, the Encryption library is not in the library tab.

Does anyone else have the problem?
I need the lib. for this code:
B4X:
Public Sub HMACSHA256(key As String, input As String, key_is_hex_string As Boolean) As String

    Private wrk_mac As Mac
    Private wrk_key As KeyGenerator
    Private wrk_bc As ByteConverter
    Private wrk_byte() As Byte
    
    wrk_key.Initialize("HMACSHA256")
    If key_is_hex_string Then
        wrk_key.KeyFromBytes(wrk_bc.HexToBytes(key))
    Else
        wrk_key.KeyFromBytes(key.GetBytes("UTF8"))
    End If
    wrk_mac.Initialise("HMACSHA256", wrk_key.Key)
    wrk_mac.Update(input.GetBytes("UTF8"))
    wrk_byte = wrk_mac.Sign
    
    Return wrk_bc.HexFromBytes(wrk_byte).ToLowerCase
    
End Sub

Greetings
 

Alexander Stolte

Expert
Licensed User
Longtime User
hmm, your'e right, but if i try to change it over Tools -> Configure Paths and change it to my B4J Additional Lib. Folder and press ok + ok on the dialog and reopen it, the old path is still in there.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Make sure to update it when there is only a single instance of the IDE open.
Is the only open IDE

Can you post the new and old paths?
current path: C:\Users\XXXX\OneDrive\B4X Libs

new path: C:\Users\XXXX\OneDrive\B4X Libs\Add B4J
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…