Plugin encryption

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 7563
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: [Beta]Plugin encryption

#21

Post by CommanderABab » Wed Nov 01, 2017 9:50

It only encrypts folders in the root plugin directory.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Lobby
Developer
Reactions:
Posts: 3331
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: [Beta]Plugin encryption

#22

Post by Lobby » Wed Nov 01, 2017 13:22

Please send me your files als well as your plugin file so I can test it myself.
...Have a nice stay

User avatar
Lobby
Developer
Reactions:
Posts: 3331
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: [Beta]Plugin encryption

#23

Post by Lobby » Wed Nov 01, 2017 23:06

Please try to match the case (of letters) of image names in your plugins. Otherwise they might not be found...
Will be fixed.
...Have a nice stay

User avatar
Lobby
Developer
Reactions:
Posts: 3331
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: [Beta]Plugin encryption

#24

Post by Lobby » Thu Nov 02, 2017 1:12

From ZipInputStream.available() Java Documentation:
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
So this method should return a value >0 if there're data available to be read. Unfortunately it looks as if some implementations don't follow this documentation and return always 0. That's why it couldn't extract plugin files properly on some devices.

The fix is to ignore available() and just try to read the data :teach
...Have a nice stay

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest