I've notice that many require passwords to be a minimum length, at least one number, one capital & one lower case letter and some require a "special character".
So I can't use my password 4321. >:D
; n - number of chars
; d - divisor
(defun kx:pwd (n d / p r)
(setq p "")
(repeat n
(setq p (strcat p (chr (setq r (+ 33 (fix (* 0.94 (atoi (substr (rtos (getvar "date") 2 8) 15)))))))))
(vl-cmdf "_delay" (/ r d))
)
p
)
; example:
(repeat 8
(terpri)
(princ (kx:pwd 8 4))
)
; or with random divisor:
(defun rnd ()
(1+ (atoi (substr (rtos (getvar "date") 2 8) 16)))
)
(repeat 8
(terpri)
(princ (kx:pwd 8 (rnd)))
)
Command: pass
Password: 5b559DDbACCC
Password: 64E190E26FAF
Password: 4b88C7890744
Password: 2b1051CfD410
Password: 4D80De0914F3
Password: f75fD4348234
Password: D8D4849cD0F9
Password: 8d0d98424184
Password: 0B70B9705B30
Password: 8609f604a64B
Password: B6BF7377A70A
3Afdfdb2
GhGP2A4e
d7jXm3Df
kjsicalG
dmd4XEew
7kWAZ432
ADj7ledf
4injDnks
ajBjel5d
3XLnq7IW
After some more tinkering (fixed some issues) I want to move on to creating "pronounceable" passwords and using SHA1 like PWGEN (the tool mentioned in the OP). This is fun! :DWhat about one which generates a pass phrase for you like the the xkcd comic: http://xkcd.com/936/
After some more tinkering (fixed some issues) I want to move on to creating "pronounceable" passwords and using SHA1 like PWGEN (the tool mentioned in the OP). This is fun! :DWhat about one which generates a pass phrase for you like the the xkcd comic: http://xkcd.com/936/
That would probably necessitate a dictionary of words to select from. Perhaps splitting them into nouns, verbs, etc. Then generating some random sentences :laugh: Might come up with really "strange" stuff.
Thereafter you might then use some form of mutation on those words. E.g. extract random letters from them, substituting some letters using numbers or punctuation.
Command: (eea-pass 8 5)
Move the cursor on the screen:
These are the very easy!
10639290
14518197
25729955
07319832
70999601
These are the easy ones!
f00r9wt0
5uvf2rj7
2912f3lz
onx5li7i
bezj36o5
These are the hard ones!
LW6Xf2zW
BQRL8Npd
YF7YB9H5
UJ3BhoDE
HKVp9cUB
These are the harder ones!
"Mw.VspM
1GH"yDfT
O5xO\z|v
+~t13e3_
7!LfzS+1
Command:
(defun encrypt (str / p)
(setq p (mapcar '+ (vl-string->list str) '(1 8 14 19 3 6 17 36 25 4 1 9 62)))
(princ (strcat "\n The activate key is: " (vl-list->string p)))
(princ)
)
(defun decrypt (str / p)
(setq p (vl-list->string (mapcar '- (vl-string->list str) '(1 8 14 19 3 6 17 36 25 4 1 9 62))))
)
(defun c:GetAPassword (/ key)
(if (and (setq password (getstring "\n Type a 4 sign PIN! "))
(setq key (strcat password (rtos (getvar "cdate") 2 0)))
)
(encrypt key)
)
(princ)
)
(defun c:ActivatePassWord (/ fname file)
(if (eq (decrypt (getstring "\n Type in Activate key! "))
(strcat (if (null password)
(progn
(princ "\n Password is expiered\n")
(exit)
)
password
)
(rtos (getvar "cdate") 2 0)
)
)
(progn
(princ "\n Program is activated! ")
(vl-registry-write "HKEY_CURRENT_USER\\Test" "" password)
(setq fname (strcat "C:\\Temp\\Test\\password" ".txt")) ; here it saved your password
(if (setq file (open fname "w"))
(write-line password file)
)
(close file)
)
(princ "\n Password i wrong! ")
)
(setq password nil)
(princ)
)
(defun c:foo ( / fname file)
(if (= (if (setq fname (strcat "C:\\Temp\\Test\\password" ".txt"))
(if (not (setq file (open fname "r")))
(princ "\n You have no password ")
(read-line file)
)
)
(if (not (vl-registry-read "HKEY_CURRENT_USER\\Test"))
(princ "\n You have no PIN")
(vl-registry-read "HKEY_CURRENT_USER\\Test")
)
)
(alert " Program is starting ")
(alert "\n No license! ")
)
(princ)
)