Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu login with encrypted password
2017-11-10, 17:06
Post: #1
Tongue Menu login with encrypted password
I am using "login" and "iseq" to password protect a certain part of ipxe. Is there a way of using an encrypted password in a string? Currently i use:

login || goto start
iseq ${username} admin || goto menu-os
iseq ${password} admin || goto menu-os

And those strings are clear text. Looking for something like "grub-crypt".
Find all posts by this user
Quote this message in a reply
2017-11-14, 10:09
Post: #2
RE: Menu login with encrypted password
I don't recall if the hash functions have been extended to allow storing into a variable or not. Carefully check the git commit log for details or ask on IRC. If they have been extended to support this behavior then you can use a sha1 or md5 checksum of the password and compare against that. That is at least a little bit better than just having everything in plain-text.
Visit this user's website Find all posts by this user
Quote this message in a reply
2017-11-16, 14:16
Post: #3
RE: Menu login with encrypted password
Ok, i didn't find any recent commit allowing hash in iseq. Unless there is another way to have an encrypted login.
Find all posts by this user
Quote this message in a reply
2017-11-20, 22:56 (This post was last modified: 2017-11-20 22:59 by Torgeir.)
Post: #4
RE: Menu login with encrypted password
Can you use HTTP auth???
http://ipxe.org/cmd/login

#!ipxe
login
chain http://${username}:${password}@my.web.server/boot.ipxe


T
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)