User Profile

Collapse

Profile Sidebar

Collapse
nonameisfree
nonameisfree
Last Activity: Dec 24 '06, 07:28 PM
Joined: Nov 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nonameisfree
    replied to write md5 to file
    I am done :D
    The solution was probably not the most elegant, but my approaching headache suggested that I should take the easy route :)

    Here are the relevant parts of the main program:
    Code:
    snip...
    class Config:
    snip...
            sum_md5='/usr/bin/startup-manager-md5.sh'
            md5_file='/tmp/grub_password_line'
    snip...
    class SumGui:
    snip...
        def on_update_password_button_clicked(self,
    ...
    See more | Go to post

    Leave a comment:


  • nonameisfree
    replied to write md5 to file
    Thanks, but md5.md5() is an other name for md5.new()
    md5.md5() is "For backward compatibility reasons"
    http://docs.python.org/lib/module-md5.html
    The module md5 is also deprecated, but that is another issue(my distro use python 2.4)

    Anyway, I have investigated further.
    I downloaded the grub source code and saw that grub-md5-crypt was only a shell-script wrapper around /sbin/grub itself.
    ...
    See more | Go to post

    Leave a comment:


  • nonameisfree
    replied to write md5 to file
    Ok, here is the line in question:

    Generated from python with .hexdigest()
    password --md5 098f6bcd4621d37 3cade4e832627b4 f6

    Generated from python with .digest()
    password --md5 �k�F!�s�� N�&'��

    Generated from grub-md5-crypt
    password --md5 $1$Kxafj1$Hz4Lu QNJ6UsGkadbkm9j E0
    See more | Go to post

    Leave a comment:


  • nonameisfree
    started a topic write md5 to file

    write md5 to file

    I am trying to get StartUp-Manager to write the grub password in encrypted form to menu.lst. Currently it writes the password in plain-text and that is not too clever...

    This is the function I currently use:
    Code:
    def on_update_password_button_clicked(self, widget):
            if self.password_entry.get_text() == self.confirm_password_entry.get_text():
                    password=self.password_entry.get_text()
    ...
    See more | Go to post
No activity results to display
Show More
Working...