Implement an Umbraco/ASP.NET password validation script in Ruby / Python
I have exported about 1K users from an Umbraco database. We have emails and hashed_passwords for each. There appears to be no per-user salt.
I have exported about 1K users from an Umbraco database. We have emails and hashed_passwords for each. There appears to be no per-user salt.
I have a large database of users (~200,000) that I’m transferring from a ASP.NET application to a Ruby on Rails application. I don’t really want to ask every user to reset their password and so I’m trying to re-implement the C# password hashing function in Ruby.
I use Sublime Text 2 but it won’t let me enter any value when my code asks for user input. (In other words: input() in Python and gets in Ruby fail to correctly prompt me for input). Python throws an EOFError error (what you get when user doesn’t enter anything). Simply USER INPUT isn’t working … Read more
I read on another Stack Overflow question that Python was just like Ruby, as it relates to “everything’s an object,” and everything in Python was an object, just like Ruby.
Ruby can add methods to the Number class and other core types to get effects like this:
I have used a ruby script to convert iso time stamp to epoch, the files that I am parsing has following time stamp structure:
i for i in range(min(map(len, a))), number of maximum lookups can’t be greater than the length of the shortest string; in this example this would evaluate to [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
I was asked (again) today to explain why integer division in Python returns the floor of the result instead of truncating towards zero like C.
I have to use Ubuntu 10.04 at work, and can’t upgrade it. I’m using Vim/gVim 7.2.