digest - base64 - std library

For general discussion related FlowStone
Post Reply
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

digest - base64 - std library

Post by Tronic »

no present this standard library function?
User avatar
CoreStylerz
Posts: 327
Joined: Sun Jan 22, 2012 2:19 am
Location: italy
Contact:

Re: digest - base64 - std library

Post by CoreStylerz »

Tronic wrote:no present this standard library function?

Take a look for that:
http://synthmaker.co.uk/forum/viewtopic ... e64#p88384
It works also in FS.
Contains the base64 encode/decode.
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: digest - base64 - std library

Post by Tronic »

THX CoreStylerz.
unfortunately only the base64, will not let me use the primitive "Network-Server & Client" effectively.
The DIGEST is very important if you want to have the ability to create systems challenge on the Web.
For example, to connect to a server with a username and password, the server typically sends me a code challenge, we use a sha-1 and base64, to respond to it and create a secure connection.
I will not speak of systems created by me, but the various protocols used in the web to date.

Then it is assumed that the Ruby primitive, has not included for the entire Standard Library of Ruby Language.

Ruby Standard Library QuickRef
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: digest - base64 - std library

Post by trogluddite »

Hi Tronic,
i just had an interesting little discussion with the developers about this issue.
It seems that not including the entire library was a conscious decision. If libraries are used, it is necessary that they are present on any machine that makes use of the .exe export - easily leading to 'broken' programs for folks who do not realise the need to have the "support" libraries installled. So it has been assumed that "power users" will need to take responsibility for their own library management.
The "require" method is fully functional - so it is possible to use any library that you might need by "requiring" them from a regular Ruby installation (freely available as the Ruby One Click Windows Installer). Easiest thing is to use that Windows Ruby installer, and then at the start of your code, add the appropriate library directories to the "$:" system variable, thus...
$: << <pathname>
Those directories will then be added to the "require" search paths, and you will have access to every one of the standard libraries.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Post Reply