Created
April 14, 2012 20:20
-
-
Save KINGSABRI/2387738 to your computer and use it in GitHub Desktop.
Password Shadow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
# PGP-Cryptor to PGP files | |
# | |
# ☉★ | |
# | |
require 'highline/import' | |
require 'colorize' | |
mark_Red = "[+]".red | |
mark_Green = "[+]".green | |
mark_yellow = "[+]".yellow | |
def get_password | |
pass_new = ask('New Password: ') {|q| q.echo = '★'.yellow} | |
pass_verify = ask('Verify Password: ') {|q| q.echo = '★'.yellow} | |
unless pass_new == pass_verify | |
puts "Password is not matching!.".red | |
else | |
puts "Password OK.".green | |
return pass_new # return the password | |
end | |
end | |
puts a = get_password # | |
# No Colorizing | |
# def get_password | |
# pass_new = ask('New Password: ') {|q| q.echo = '★'} | |
# pass_verify = ask('Verify Password: ') {|q| q.echo = '★'} | |
# | |
# if pass_new == pass_verify | |
# puts "Password OK." | |
# return pass_new # return the password | |
# else | |
# puts "Password is not matching." | |
# end | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment