simple encryption system

For general discussion related FlowStone
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: simple encryption system

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Post 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.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: simple encryption system

Post 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).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Post 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.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: simple encryption system

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: simple encryption system

Post 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]
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Post by RJHollins »

Wow Tronic ...

that is really great :D Thanks for sharing that 8-)
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: simple encryption system

Post by tester »

Yep, seems to work fine.
Should I expect any limitations on this one?
Attachments
enc-dec.fsm
(529 Bytes) Downloaded 995 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Post 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!
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: simple encryption system

Post 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.
Post Reply