Starting Shiny app after password input

EDIT 2019: We can now use the package shinymanager to do this: the invactivity script is to timeout the login page after 2 mins of inactivity so you dont waste resources: library(shiny) library(shinymanager) inactivity <- “function idleTimer() { var t = setTimeout(logout, 120000); window.onmousemove = resetTimer; // catches mouse movements window.onmousedown = resetTimer; // catches … Read more

Does has_secure_password use any form of salting?

has_secure_password uses bcrypt-ruby. bcrypt-ruby automatically handles the storage and generation of salts for you. A typical hash from bcrypt-ruby looks like this: $2a$10$4wXszTTd7ass8j5ZLpK/7.ywXXgDh7XPNmzfIWeZC1dMGpFghd92e. This hash is split internally using the following function: def split_hash(h) _, v, c, mash = h.split(‘$’) return v, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str end For the example hash this function yields: … Read more

What are Salt Rounds and how are Salts stored in Bcrypt?

With “salt round” they actually mean the cost factor. The cost factor controls how much time is needed to calculate a single BCrypt hash. The higher the cost factor, the more hashing rounds are done. Increasing the cost factor by 1 doubles the necessary time. The more time is necessary, the more difficult is brute-forcing. … Read more

Can anyone confirm that phpMyAdmin AllowNoPassword works with MySQL databases?

Copy config.sample.inc.php to config.inc.php. In most cases you will find the config file on linux: /etc/phpmyadmin/config.inc.php on mac: /Library/WebServer/Documents/phpmyadmin/config.inc.php If you are trying to log in as root, you should have the following lines in your config: $cfg[‘Servers’][$i][‘user’] = ‘root’; $cfg[‘Servers’][$i][‘AllowNoPassword’] = true;

getpasswd functionality in Go?

The following is one of best ways to get it done. First get term package by go get golang.org/x/term package main import ( “bufio” “fmt” “os” “strings” “syscall” “golang.org/x/term” ) func main() { username, password, _ := credentials() fmt.Printf(“Username: %s, Password: %s\n”, username, password) } func credentials() (string, string, error) { reader := bufio.NewReader(os.Stdin) fmt.Print(“Enter … Read more

encrypt and decrypt md5

As already stated, you cannot decrypt MD5 without attempting something like brute force hacking which is extremely resource intensive, not practical, and unethical. However you could use something like this to encrypt / decrypt passwords/etc safely: $input = “SmackFactory”; $encrypted = encryptIt( $input ); $decrypted = decryptIt( $encrypted ); echo $encrypted . ‘<br />’ . … Read more

Enter export password to generate a P12 certificate

OpenSSL command line app does not display any characters when you are entering your password. Just type it then press enter and you will see that it is working. You can also use openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12 -password pass:YourPassword to pass the password YourPassword from command line. Please take a … Read more