Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

simple encryption system

For general discussion related FlowStone

Re: simple encryption system

Postby tester » Sun Nov 03, 2013 7:10 pm

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

Re: simple encryption system

Postby RJHollins » Sun Nov 03, 2013 7:55 pm

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.
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Postby tester » Sun Nov 03, 2013 8:48 pm

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

Re: simple encryption system

Postby RJHollins » Sun Nov 03, 2013 9:36 pm

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.
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Postby tester » Sun Nov 03, 2013 10:49 pm

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

Re: simple encryption system

Postby Tronic » Mon Nov 04, 2013 7:55 am

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

Re: simple encryption system

Postby RJHollins » Mon Nov 04, 2013 10:21 am

Wow Tronic ...

that is really great :D Thanks for sharing that 8-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Postby tester » Mon Nov 04, 2013 10:37 am

Yep, seems to work fine.
Should I expect any limitations on this one?
Attachments
enc-dec.fsm
(529 Bytes) Downloaded 816 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: simple encryption system

Postby RJHollins » Mon Nov 04, 2013 10:49 am

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!
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: simple encryption system

Postby Tronic » Mon Nov 04, 2013 11:11 am

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

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 64 guests