passwords

storing credentials in android

余生颓废 提交于 2019-12-05 08:13:42
问题 how should i store user credentials in my app i'm creating for myself? i'm not setting up any servers i'm just installing the app directly to my phone via USB. what i'm trying to do is have myself enter a username/password to associate to the account, basically the same as most other apps. the only difference is i'm not setting up any servers since i'm new and would have no idea how to do that. so with this in mind could i get away with storing in a database and pulling the info from there,

Autofill Username and Password in UIWebView

走远了吗. 提交于 2019-12-05 08:06:55
I'm doing a very easy app for me. When I launch this app, it simply bring me to this web page https://social.tre.it/expert . I would like to automatise login so is there a way to autofill username and password, check the "I accept condition" mark and push "login" button? I tried this Autofill Username and Password UIWebView Swift but it doesn't work, I'm not the creator of the page so I don't know exactly how it's structured. Would be cool even if iCloud keychains would fill the forms...but maybe I'm asking too much! Artal You can use JavaScript to do it. If you inspect the page, you can

codeigniter + require letters and numbers in password

空扰寡人 提交于 2019-12-05 07:58:27
I'd like to use form validation to require a password that has BOTH alpha and numeric characters. Here's what I've come up with so far: $this->form_validation->set_rules('password', 'Password', 'required|matches[passconf]|min_length[8]|alpha_numeric'); The issue is that "alpha_numeric" requires that the password only contain letters or numbers, it doesn't require both. Going for the stronger password option here. You could set up a callback in your controller: public function password_check($str) { if (preg_match('#[0-9]#', $str) && preg_match('#[a-zA-Z]#', $str)) { return TRUE; } return FALSE

is hashing mechanism really secure?

大城市里の小女人 提交于 2019-12-05 07:54:04
问题 Well, I have always seen (and following) people saying to use hashing mechanism for storing passwords in database. I am really concerned is it secure? Lets go with example. Let's say I am hacker and I got your database name, id and password. Now I have FULL access to your database. What people say passwords should be hashed because if someone hacks, they are visible to hackers. so If I run query as select id, password FROM userDetails I will get data as below Option 1 : Without hash +++++++++

validating password format in Authlogic

故事扮演 提交于 2019-12-05 07:51:44
Is there a way to get Authlogic to validate the format of a password, for instance must contain at least one letter and at least one number? The omission of a validates_format_of_password_options method to be used in the acts_as_authentic config block seems to indicate that Authlogic has the opinion that one should not be imposing such a constraint on one's users. I thought I would simply put in a normal ActiveRecord validates_format_of :password , but this means that a current_user object I build is inherently invalid, as I can't retrieve the plaintext password (and wouldn't be storing it in

MySQL/phpMyAdmin Reset ROOT PASSWORD?

孤人 提交于 2019-12-05 07:50:21
问题 I'm having MySQL on RHEL, and phpMyAdmin interface also. I have normal MySQL user access which i remember but i forget the root password. How to SAFELY reset the MySQL root password? (I have root account on O/S) 回答1: From Here: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html Stop mysqld and restart it with the --skip-grant-tables option. This enables anyone to connect without a password and with all privileges. Because this is insecure, you might want to use --skip-grant

Password protected uninstallation using Inno Setup

怎甘沉沦 提交于 2019-12-05 07:12:11
I am making an installer using Inno Setup. I want to password protect the uninstallation. So my plan is to ask for the uninstallation password during installation, and save it into a file. While uninstalling, ask for the password from user and compare the passwords. I could not find a way to let the user enter the password while uninstalling, is there any? vicsar Some Inno Setup users require that the user who wants to uninstall the software is asked for a password before this is possible. Anti virus software might be a candidate for this requirement, for instance. The code below shows how to

Custom authentication in a Symfony 3 using external REST API

拜拜、爱过 提交于 2019-12-05 06:40:25
I would like to write a basic login form, which authenticates users by sending a request to an external REST API. The external API receives the login/password and return 200 (ok) if the credentials are correct. However, I can't implement it via the UserProviderInterface, because the external REST API give me the password in the reply. (I can't fill the user password in the loadUserByUsername method). I found a valid solution here, but it uses classes that have been removed in Symfony 3 : Symfony2 custom connection by web service I made a test with a custom Authenticator, which only checks that

gitosis asking for password

Deadly 提交于 2019-12-05 06:37:09
I have setup a gitosis server following instructions from here . It works fine for the initial user but I have recently added a new user. Here are the steps I took. Created an rsa keypair using ssh-keygen with filename johndoe. Then copied it to the keydir in gitosis admin repo. Edited the gitosis config file and added user johndoe to the list of members Commited the changes using git commit -a -m "what i did" Pushed the changes to the server After that I tried to check out with the new keyfile. It asks for the passphrase and when I enter it correctly, it the asks for the password for user git

Is it possible to read from the console with scan without echoing the characters?

大城市里の小女人 提交于 2019-12-05 06:28:40
Here is an example function: passwordEntry <- function() { cat("Enter your password: ") pwd <- scan(n=1, what=character(), quiet=TRUE) invisible(pwd) } And to test the function: > passwordEntry() Enter your password: 1: test > Is there a way to suppress what the user types? Or replace it with some other character? I have written a tcl/tk function to prompt the user for a password but it doesn't work on our Linux server. Here is an example from Paul's link below. This does not work either on Linux or Windows (the latter probably because I don't have a proper C compiler so will look into that).