14. Okt 2018
danielbahl
Done 😎
Simple Password Generator for creating unique passwords.
First release
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/text'
#define color red
#define glyph gear
menu nil {
item "Alphanumeric":
@CharacterSet = "a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9"
item "Alphanumeric + Symbols":
@CharacterSet = "a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 ` ~ ! @ # $ % ^ & * ( ) _ - + = { } [ ] \ | : ; \\" ' < > , . ? /"
}
prompt("Password Length", "Number")
@PasswordLength = nil
repeat _ for @PasswordLength {
// TODO: Get Variable not supported: Assign variable here to '@CharacterSet'.
splitText(nil, " ")
getFirstItem(nil)
}
joinText(nil, " ")
replaceText(" ", "", "", false)
setClipboard(nil)
alert(Clipboard, "Password")
Done 😎
Thank you for sharing. I'll just add some screenshots to this. :) - Daniel