Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm in need of a two-way encryption solution for Ruby, such as Blowfish, Rijndael (AES) or other. The problem, however, is that I can't find an appropriate gem for it. I would like for the library to support several different encryption algorithms so I can compare the performance of each for optimal integration i my application. I would also like it to be open source.
I came across Crypt, but it doesn't install properly and doesn't look like it's been updated in a while. EzCrypto won't install, either. I also saw ruby-aes, but that only supports Rijndael.
After some GitHub searching, I found Encryptor, which seems to be something like what I'm looking for. However, I'd love to get some ideas about any gems/libraries I might have missed.
Thanks in advance!
Why look so far, if everything you asked for is already available in your standard Ruby installation: the OpenSSL module.
The Cipher class provides encryption and decryption, have a look at
require 'openssl'
puts OpenSSL::Cipher.ciphers
for a list of available algorithms.
I'd recommend Shuber's Encryptor - it wraps the OpenSSL library so you can use anything it supports.
I came across Gibberish today. I haven't tried it out yet though.
ClaimToken is something we developed to handle claims based authentication with encryption and signing of json data. You can include this into almost any implementation you like. Cookies, Header etc..
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I can't seem to find a way to generate documentation for Clojure code on Windows.
Marginalia seems to be broken on all platforms since 1.7 (see here:
https://github.com/gdeer81/marginalia/issues/158).
Codox has an issue
open on this topic (https://github.com/weavejester/codox/issues/110).
The Autodoc plugin for Lein 2 seems to be broken as well (not
enough reputation to post more than two links, but there's an issue
open on this over at GitHub).
Has anyone succeeded in running any of these three on Windows? Should I try something else?
Note:
I do not have a choice here, it must run on Windows.
As I'm building a case for clojure in the company, it must play well with leiningen, which is used to build and test our code.
Another option is autodoc - seems to still be active, but from the README it seems there are no promises it works on windows - still you could give it a try.
I think codox might still be your best bet. It's pretty popular and well maintained (there's only 4 open bugs right now and they're pretty newish - one of which is the one you referenced in your question). So maybe give it some time.
Finally, I know this is probably obvious and not ideal, but you could at least do one-off generations of documentation on a *nix system for the time being.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anybody point me to C or Java code (or anything else) that does NTRU encryption?
Several people who were implementing the algorithm have posted on this site, so maybe they could help?
I also noticed that quite a number of NTRU implementations have been written at universities, so it would seem strange that sources, or at least sample code, are so hard to come by.
Try this: http://sourceforge.net/projects/ntru/
The NTRU crypto is now available under an approved open source GPL v2 license. You can find it here.
https://github.com/NTRUOpenSourceProject/ntru-crypto
There is a post here: http://java.itags.org/java-programming/164200/
You may find the tutorials on the NTRU
website helpful --
http://www.ntru.com/cryptolab is the
place to start.
Note that we encourage people to
develop and play with the algorithms
themselves, but you may not distribute
your implementation without a license
from NTRU.
================================
William Whyte, CTO, NTRU Cryptosystems
Perhaps this is why you cannot locate the source code, as you need a license.
Java sources for NTRUEncrypt and NTRUSign can be found here:
http://sourceforge.net/projects/ntru/
A command line interface for encryption and decryption using the NTRU cryptographic algorithm.
https://code.google.com/p/ntrutil/
NTRU sources are also available from the FlexiProvider SVN repository:
svn co --username guest --password guest https://svn.cdc.informatik.tu-darmstadt.de/svn/repos/flexiprovider
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anybody point me to C or Java code (or anything else) that does NTRU encryption?
Several people who were implementing the algorithm have posted on this site, so maybe they could help?
I also noticed that quite a number of NTRU implementations have been written at universities, so it would seem strange that sources, or at least sample code, are so hard to come by.
Try this: http://sourceforge.net/projects/ntru/
The NTRU crypto is now available under an approved open source GPL v2 license. You can find it here.
https://github.com/NTRUOpenSourceProject/ntru-crypto
There is a post here: http://java.itags.org/java-programming/164200/
You may find the tutorials on the NTRU
website helpful --
http://www.ntru.com/cryptolab is the
place to start.
Note that we encourage people to
develop and play with the algorithms
themselves, but you may not distribute
your implementation without a license
from NTRU.
================================
William Whyte, CTO, NTRU Cryptosystems
Perhaps this is why you cannot locate the source code, as you need a license.
Java sources for NTRUEncrypt and NTRUSign can be found here:
http://sourceforge.net/projects/ntru/
A command line interface for encryption and decryption using the NTRU cryptographic algorithm.
https://code.google.com/p/ntrutil/
NTRU sources are also available from the FlexiProvider SVN repository:
svn co --username guest --password guest https://svn.cdc.informatik.tu-darmstadt.de/svn/repos/flexiprovider
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Well, I tried Shoes, Titanium, and RubyFX (or was it FXRuby?) and am not yet quite happy with the stability and cross-platform support from any of them as desktop application GUI tools. Next in line is Adobe AIR. Anyone know what the best tool is that will integrate Ruby and Adobe AIR? Is it even possible?
I think the better question might have been "is there an AIR/Ruby integration framework?" because I don't recall ever having seen such a thing...
Did you consider Google as a possible first port-of-call? ;-)
First result I got was some info at RubyInside.
However, the fact that this question is (as I write this) the #8 search result suggests that there may may not be much to find.
Beyond that, I'd also suggest taking a look at WxRuby, which seems - from a Windows-only perspective so far - to produce nicely native-looking UIs.
Have you considered using jRuby and Swing? Using Ruby really makes Swing much more pleasant to work with.
It appears that at the time of writing, there are no Ruby/AIR frameworks.
I'd agree that there isn't a framework that answers your question, per se. But if you have a majority your rails stuff written, a good 'service wrapper' that you might want to look at is weborb. We use it for our C# classes and it's only about 10Bil times faster than flat xml service calls (You'll still receive xml, but it will be serialized/deserialized --- may the FSM bless AMF.)
True, you'd still have to write a UI, which, by the wording of your question, I'm guessing you wanted to avoid.
Is this the sort of thing you are looking for? http://www.appcelerator.com/products/titanium-desktop/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 months ago.
Improve this question
Im struggling to find good material about developing web applications in Ruby without using a framework such as Rails or Merb in the usual places (I've already spent a while on Google, Safari books online and stackoverflow looking!). I have nothing against the frameworks at all; just my intended architecture is a little different and so doesnt fit well.
Can you give some recommendations on resources you have found useful?
You should give Sinatra a try. It's a framework, but a minimalistic one, so you can easily see what is going on under the hood.
Other than that maybe the CGI Ruby library is a place to look into.
If you are intending a home brewed approach I can highly recommend Ruby Cookbook published by O'Reilly. It's one of the most useful Ruby books I've bought and has a some very good chapters (14 - 16) on internet programming.
Look into rack, it's THE way to do ruby web apps without using a preexisting framework. From the docs:
"A Rack application is an Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the headers, and the body."
If a minimal framework will suffice then I recommend waves
Webby is worth a look. Simple, but useful for some applications.