rubyworks / crypt3 Goto Github PK
View Code? Open in Web Editor NEWUnix Crypt 3 in Ruby
Home Page: http://rubyworks.github.com/crypt3
License: BSD 2-Clause "Simplified" License
Unix Crypt 3 in Ruby
Home Page: http://rubyworks.github.com/crypt3
License: BSD 2-Clause "Simplified" License
If the time was taken to translate the digest lib from C to pure Ruby, then this library would have no C-based dependencies left, which could be useful to other Ruby implementations besides MRI.
However, looking at the C code for digest I admit this is not a task for the faint of heart.
It got my hopes up, but I have to respectfully disagree that this is pure ruby. Most of the hashing methods require digest, which is a relatively thin wrapper around a bunch of C extensions, e.g.:
$ head -3 /usr/lib/ruby/1.8/digest.rb
require 'digest.so'
module Digest
I think you should mention in the readme that you need (or was it only me?) facets as well.
Without facets gem installed:
>> require 'rubygems' => false >> require 'crypt3' LoadError: no such file to load -- facets/string/xor.rb from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Users/dentarg/.gem/ruby/1.8/gems/crypt3-1.1.0/lib/crypt3.rb:36 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from (irb):4
After doing gem install facets
I had better luck:
>> require 'rubygems' => false >> require 'crypt3' => true >> Crypt3.crypt('pass') => "$1$qEfNSNGZ$jRUCV6eauhk5SUFDWHgv8/"
I'm have my doubts anyone is using the gem. So unless someone would like to take it over, I am going to deprecate it at the start of the new year.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.