Skip to main content
13 events
when toggle format what by license comment
Aug 8, 2013 at 10:52 comment added rahuL @MartijnPieters - It worked!!
Aug 8, 2013 at 10:51 vote accept rahuL
Aug 8, 2013 at 9:51 comment added rahuL @JanHudec: So you have any methods or suggestions as to how to encrypt the bash and then have the python script decrypt the same?
Aug 8, 2013 at 9:50 history edited Martijn Pieters CC BY-SA 3.0
added 280 characters in body
Aug 8, 2013 at 9:45 history edited Martijn Pieters CC BY-SA 3.0
added 280 characters in body
Aug 8, 2013 at 9:39 comment added Jan Hudec @i.h4d35: It's totally pointless to encode it unless you encrypt it and the key comes from the license server. Any other way the user has the source and can do anything they want with it. And of course they can share the key once they have it, but at least they can't get it without having a valid license at least once.
Aug 8, 2013 at 9:33 comment added rahuL So to summarize, compress bash with gzip, base64 encode it, embed that as a string in the python script; in the python script, decode it pass the result through gzip module and then pass this whole sting to the run_script function - is this right?
Aug 8, 2013 at 9:27 comment added Martijn Pieters Only base64 encoding will expand the size, not reduce it.
Aug 8, 2013 at 9:27 history edited Martijn Pieters CC BY-SA 3.0
added 243 characters in body
Aug 8, 2013 at 9:26 comment added rahuL On a separate note, is it favourable that I maybe encode the bash script (using .encode('base64') function) and embed that in the python script? Sorry to sound silly, I'm just asking for a security point-of-view of the product. Or is there any other suggested method?
Aug 8, 2013 at 9:23 comment added Martijn Pieters @i.h4d35: Why not use a separate file then?
Aug 8, 2013 at 9:21 comment added rahuL said bash script is around 200 lines.... :(
Aug 8, 2013 at 9:13 history answered Martijn Pieters CC BY-SA 3.0