passwords

Rails storing third party credentials.. Anyone know best practice?

陌路散爱 提交于 2020-01-21 21:53:25
问题 I've read a pile of other related questions... nothing really seems to answer the question I have. My application will integrate with several different third party sites. (ebay, paypal, google, amazon...) It is a product management system and it pushes products all over the place... Of course since it interacts with all these sites, it needs usernames, passwords, tokens.. ect.. Now I don't think it's really a good idea to store these things raw, but I still need to be able to get them raw, so

Preventing snapshot view of your app when coming back from multi-tasking

末鹿安然 提交于 2020-01-21 01:43:46
问题 The problem is this - My app lets you passcode protect itself. I use an interface just like passcode protecting the phone. This has always worked fine, until multi-tasking came along. The passcode protection still works, but there is one issue. Apple does something special to make it look like our apps are loading quicker when they come back from the background. The os takes a picture of our screen just before the user leaves the app, and it displays that while the rest of the app is still

Preventing snapshot view of your app when coming back from multi-tasking

亡梦爱人 提交于 2020-01-21 01:42:51
问题 The problem is this - My app lets you passcode protect itself. I use an interface just like passcode protecting the phone. This has always worked fine, until multi-tasking came along. The passcode protection still works, but there is one issue. Apple does something special to make it look like our apps are loading quicker when they come back from the background. The os takes a picture of our screen just before the user leaves the app, and it displays that while the rest of the app is still

PHP & MySQL compare password

强颜欢笑 提交于 2020-01-20 02:26:05
问题 How does one check to see if a user has typed in the right password to log in? This is what (out of a bunch of combinations...) I am doing: <? $login = $_POST['login']; $password = $_POST['password']; mysql_connect('localhost', 'root', 'abc123'); mysql_select_db('aun_vox') or die(mysql_error()); $q = mysql_query("SELECT password FROM customer WHERE login='$login'"); $db_pass = mysql_result($q, 0); if(md5($password) == $db_pass) { echo "You did it."; } else echo "Wrong."; ?> As I can see from

SASL password normalization

不打扰是莪最后的温柔 提交于 2020-01-17 06:38:28
问题 there is very simple question - can you normalize for me some password, because I can't understand how it works? So, there is password: "IDoMdGuFE9S0", how it looks in "normalized" view? There are only alphanumeric ascii characters. Does result and original be equal? PS: Sorry for my bad English. 回答1: I'm assuming with "normalized" you mean SASLpreped. In the case of "IDoMdGuFE9S0", the output is the same as the input (it is fully ASCII, with no control sequences or U+00AD ). If you're

SASL password normalization

一个人想着一个人 提交于 2020-01-17 06:38:21
问题 there is very simple question - can you normalize for me some password, because I can't understand how it works? So, there is password: "IDoMdGuFE9S0", how it looks in "normalized" view? There are only alphanumeric ascii characters. Does result and original be equal? PS: Sorry for my bad English. 回答1: I'm assuming with "normalized" you mean SASLpreped. In the case of "IDoMdGuFE9S0", the output is the same as the input (it is fully ASCII, with no control sequences or U+00AD ). If you're

Migrating passwords from web2py to Django

ε祈祈猫儿з 提交于 2020-01-17 04:11:29
问题 I have passwords stored in web2py using SHA 512 algorithm. I am now migrating the models to django and hence need a way to hash passwords in django using SHA 512 in the same way as web2py does so that I can authenticate the old users with the same passwords.Please suggest some way. 回答1: According to this post a Python snippet to recreate the convention used in web2py would be the following: from hashlib import md5 import hmac hmac_key = '<your secret key>' password = 'insecure' thehash = hmac

Using hashCat with a RAR file?

試著忘記壹切 提交于 2020-01-17 02:19:48
问题 I'm pretty stumped, is it actually possible to use hashcat for a RAR file? The forum says "yes" and points to a sample... They appear to be calling: ./oclHashcat64.bin -m 12500 hash -w 3 -a 3 ha?l?l?l?l?l So far, so good.. So I go grab jtr and run rar2john, which gives me; test.rar:$RAR3$*1*1234561234561234*e1111111*22222222*33333333*0*/home/test.rar*77*33:1::testClip.wmv I've tried every permutation of this in place of the 'hash' in the command, but I always get Line-length exception Has

Set Default Value Of A Password Input / A Scenario / Issue in IE 8

被刻印的时光 ゝ 提交于 2020-01-17 01:21:12
问题 plz see the below thread : Set Default Value Of A Password i followd the answer #1 like this for my purpose : <div id="headertxtPassWord-Container" class="header-login-input-Container"> <asp:TextBox ID="headertxtPassWord" runat="server" Text="password" onclick="return onclickOfPassWord(this);" onblur="onblurOfPassWord(this);" CssClass="header-login-input"></asp:TextBox> </div> function onclickOfPassWord(This) { if (This.value == 'password') { $('#headertxtPassWord-Container').html("<input id=

How to reset password in AD, getting an LDP OperationNotSupported error

为君一笑 提交于 2020-01-17 01:14:40
问题 We are able to create accounts in the active directory. But for some reason we are unable to login with them. The way our system works is a user applies for an account, an admin approves it and the user is sent a temporary password to login with. We think it may have to do with the permissions of the user but are not quite sure. Our code is extensive but here is some of our code and console log: javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000052D: SvcErr: DSID