Page 3 of 3

Re: simple encryption system

Posted: Sun Nov 03, 2013 7:10 pm
by tester
I still don't get it, reading this:
http://www.tntbasic.com/learn/help/guid ... lained.htm
because I still don't know how letters from my language refer to that.

But it does not matter. If works with english and with polish (may not work?), then it's enough.

Re: simple encryption system

Posted: Sun Nov 03, 2013 7:55 pm
by RJHollins
There was some type of 64 bit [?] encode/decode on the SM forum, or it was in one of the construction 'tool kits' that maybe TROG or someone else put together. No doubt it was 'green', and in OSM format.

Re: simple encryption system

Posted: Sun Nov 03, 2013 8:48 pm
by tester
You mean this one?
http://synthmaker.co.uk/forum/viewtopic ... 09&p=74822

For some reason it tends to trim longer texts (tested on just "text text ..." multiline).

Re: simple encryption system

Posted: Sun Nov 03, 2013 9:36 pm
by RJHollins
that's it ...

the author mentions:
The base64 module I created,
it can easily be modified for different needs, it could also convert all characters,
just remove the filter during encodiing or add a filter to parse the MIME specification,
actually a MIME base64 string does not exceed 76 characters.
But used for many purposes there is no limit to the string to create,
I also added the characters space and return, so the string is already divided as a arrary.
However, just proceed to split a string of 4 base64 characters at a time.

Re: simple encryption system

Posted: Sun Nov 03, 2013 10:49 pm
by tester
I overlooked that info, thanks.

After I finish here, I will just wire an example ("typical" length) project, and see what happens on conversion using Trog's module.

Re: simple encryption system

Posted: Mon Nov 04, 2013 7:55 am
by Tronic
@Trog
it is allright implemented, not needed any external lib or gem to do this.

Code: Select all

encode_base64 = [@str].pack('m')
decode_base64 = encode_base64.unpack('m')[0]

Re: simple encryption system

Posted: Mon Nov 04, 2013 10:21 am
by RJHollins
Wow Tronic ...

that is really great :D Thanks for sharing that 8-)

Re: simple encryption system

Posted: Mon Nov 04, 2013 10:37 am
by tester
Yep, seems to work fine.
Should I expect any limitations on this one?

Re: simple encryption system

Posted: Mon Nov 04, 2013 10:49 am
by RJHollins
One question I thought ... as to security/protection.

Not that I know ... but, what I don't see is any 'key' setting ... so, if someone wanted to 'decode' [even for experiment], wouldn't it be as simple as running through a base64 decoder ? [making a good guess that this was the type used] :o

Maybe this is not the real intent of the 'encryption' roll. :? But what if you needed it 'keyed' ? could this be incorporated ?

thanks!

Re: simple encryption system

Posted: Mon Nov 04, 2013 11:11 am
by Tronic
you ca use the entropy method.
string[N byte] -> encode
[N byte] of preview of encoded string, added(before,after, or mixed) with your new encoded string. (this is your key)

and when decode use the inverse system. only you know how decode the string.
yes, is possible to get some of data, with simple decode string in base64, but is not clear at all.