passwords

Trigger password reset email in django without browser?

拈花ヽ惹草 提交于 2019-12-18 16:27:12
问题 I want to be able to send a password reset email using django.contrib.auth.views.password_reset but without using the browser - password_reset needs a populated form, is there a way I can create this programmatically and get the email sent? 回答1: from django.contrib.auth.forms import PasswordResetForm def reset_password(email, from_email, template='registration/password_reset_email.html'): """ Reset the password for all (active) users with given E-Mail adress """ form = PasswordResetForm({

Obfuscate strings in Python

寵の児 提交于 2019-12-18 16:12:28
问题 I have a password string that must be passed to a method. Everything works fine but I don't feel comfortable storing the password in clear text. Is there a way to obfuscate the string or to truly encrypt it? I'm aware that obfuscation can be reverse engineered, but I think I should at least try to cover up the password a bit. At the very least it wont be visible to a indexing program, or a stray eye giving a quick look at my code. I am aware of pyobfuscate but I don't want the whole program

Add/import certificate with password via command line Mac OS X

ぐ巨炮叔叔 提交于 2019-12-18 15:26:48
问题 I'm trying to import a .pfx certificate via command line. This certificate is secured by a password. Is there a way to do this in terminal? I'm running OS X 10.8. When I use this command I get the default pop-up asking for the password: security import certificate.pfx -k ~/Library/Keychains/login.keychain When I use this command: security import certificate.pfx -k ~/Library/Keychains/login.keychain -P password I get this error: SecKeychainItemImport: MAC verification failed during PKCS12

Should whitespace characters be allowed in a password?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 15:18:11
问题 I've tried different sites/products and this seems to be split fairly evenly. Windows 7 and Gmail allow you to insert spaces in your password. Hotmail and Twitter do not. While allowing spaces in a password increases the complexity of a password, it seems like many sites/programs do not allow them. Is there a good reason to allow/disallow spaces? 回答1: This SuperUser question might be relevant. I think that your observation is accurate: many web-based systems accept only alphanumerics and a

Generating Password Hash In PHP 5.5 And Setting Cost Option

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 14:15:56
问题 I know PHP 5.5 is in alpha but this class I am making is just being made in advance to utilize it's hashing feature by using function_exists(). I checked out the password_hash documentation. The 3rd argument is for $options which currently supports two options, 'salt' and 'cost'. It states the following: cost, which denotes the algorithmic cost that should be used. Examples of these values can be found on the crypt() page. When I go to the crypt() page the documentation it gives is: Blowfish

Is there a way I can retrieve sa password in sql server 2005 [closed]

橙三吉。 提交于 2019-12-18 13:39:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I just forgot the password. Can anyone help me how to get back the password. 回答1: There is no way to get the old password back. Log into the SQL server management console as a machine or domain admin using integrated authentication, you can then change any password (including sa). Start the SQL service again and

Is there a way I can retrieve sa password in sql server 2005 [closed]

左心房为你撑大大i 提交于 2019-12-18 13:39:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I just forgot the password. Can anyone help me how to get back the password. 回答1: There is no way to get the old password back. Log into the SQL server management console as a machine or domain admin using integrated authentication, you can then change any password (including sa). Start the SQL service again and

looking for c# equivalent of php's password-verify()

我只是一个虾纸丫 提交于 2019-12-18 13:25:39
问题 I need to import a bunch of user accounts Moodle into a system written in c#. Moodle uses password_hash() function to create hashes of passwords. I need to be able to verify these passwords in c#. In other words I looking for a c# implementation of PHP's password verify function ( http://www.php.net/manual/en/function.password-verify.php ). I've googled a bit but couldn't really find anything close, so I am asking in hopes of avoiding reinventing the wheel :-) Thanks! 回答1: Got it! First

Where do I find a dictionary for password validation?

邮差的信 提交于 2019-12-18 12:38:33
问题 I am working on a password validation algorithm that needs to check potential passwords against the dictionary. If the password or any part of it can be found in the dictionary, reject it. The function is easy enough, but where do I get the word list? Is there a web service already out there for looking up words? I have poked around some, but not found anything that screams "Pick Me!" Thanks. EDIT: When I asked this question, I hadn't thought about specific password dictionaries like @Joe

Two-way password encryption without ssl

时光怂恿深爱的人放手 提交于 2019-12-18 12:25:16
问题 I am using the basic-auth twitter API (no longer available) to integrate twitter with my blog's commenting system. The problem with this and many other web APIs out there is that they require the user's username and password to do anything useful. I don't want to deal with the hassle and cost of installing a SSL certificate, but I also don't want passwords passed over the wire in clear text. I guess my general question is: How can I send sensitive data over an insecure channel? This is my