password-protection

ODBC Password Security in SAS

一曲冷凌霜 提交于 2019-12-28 06:58:54
问题 We want to remove hardcoded passwords from ODBC connection strings in our SAS code, and also prevent any of the passwords from appearing in the SAS log files. There seems to be plenty of whitepapers discussing how to go about this but I either find problems with them, or can't get them working. Prompting the user each time for the PW is not a viable alternative. Also, storing the password in a macro variable is an acceptable approach, as long as you have a way to suppress it from printing to

Password Protecting an Excel file in C#

北慕城南 提交于 2019-12-28 06:35:09
问题 Does anyone know the syntax for this? I've been looking everywhere and all I can find is C++ code for this. I'm trying to password protect an excel file programatically using the System.IO.Packaging namespace. Any ideas? Additional notes: I'm NOT using the Excel interop--but instead the System.IO.Packaging namespace to encrypt and password protect the excel file. 回答1: If you want an Excel password all you need is something like this: using Microsoft.Office.Interop.Excel //create your

php password_verify not working with database

时间秒杀一切 提交于 2019-12-28 00:51:13
问题 I am using php 5.4 with this backwards compatibility script: https://github.com/ircmaxell/password_compat/blob/master/lib/password.php that shouldn't matter though, because I can get the hashing and verification process working in my registration function: $hash = password_hash($pass, PASSWORD_DEFAULT); echo $pass; echo $hash; if( password_verify($pass,$hash) ) echo 'success'; else echo 'failure'; //success is always shown //EXAMPLE INPUT $pass = 'password'; //EXAMPLE OUTPUT password$2y$10

password protect access 2010 options

旧城冷巷雨未停 提交于 2019-12-25 09:50:32
问题 I understood that it is possible to set a password to an access database to prevent users from opening it. But is it also possible to set a password to prevent people from changing the "current database" options in the "Options" section? I'm looking for a feature similar to Excels "Protect Workbook" method. 回答1: Is this what you are after ? 1.Open Microsoft Access 2010 and open the database that you wish to password protect in exclusive mode. You may do this by selecting Open from the file

To give password to the apk

我的未来我决定 提交于 2019-12-25 03:00:22
问题 I have developed one application and made the apk of that app.Now I want to give password to that so that when anyone will try to install the application it will ask for the password. 回答1: You can't protect apk files that way, however you can add a screen to your application that "validates" the install, this is where they should enter a password which should be entered just once and remember this. 回答2: You cannot simply do this. Are you trying to licence your software? If so, create a Splash

IOS store more than one password in keychain

独自空忆成欢 提交于 2019-12-25 02:59:39
问题 in my app I can save an read fine 1 password store in the keychain using this code // save password [keychainItem setObject:textFieldPassword.text forKey:(__bridge id)(kSecValueData)]; //get pasword from keychain NSString *_password = [keychainItem objectForKey:(__bridge id)(kSecValueData)]; My question is: how can I store more than 1 password at a time in the keychain? 回答1: Keychain programming is hard. I use a wrapper class called SFHFKeychainUtils. It has very simple class methods for

Cache password for SQL Server connection as a hash

落爺英雄遲暮 提交于 2019-12-24 16:46:41
问题 I'm writing a .NET 4.0 application that requires access to a SQL Server (v10.50.1600) database on the intranet. The database does not support integrated security/SSPI logins, only user/password logins. The best I've managed so far is: SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder() { DataSource = Settings.SQLHostName, Encrypt = true, TrustServerCertificate = true, UserID = Settings.SQLUser, Password = "xxx", InitialCatalog = "xxx" }; However, this requires that I store

Creating a Password Protected Zip File using PHP in Windows

限于喜欢 提交于 2019-12-24 00:52:50
问题 I am creating a zip file of a given file in PHP. Following is the function function create_zip($file, $file_name) { $zip = new ZipArchive(); $zip_name = $file_name. ".zip"; // Zip name $zip->open($zip_name, ZipArchive::CREATE); if (file_exists($file)) { $zip->addFromString(basename($file), file_get_contents($file)); } else { return "file does not exist"; } $zip->close(); return $zip_name; } I want to add password protection for the Zip files. I have found following code to create a password

email sent without putting the password into the code

大兔子大兔子 提交于 2019-12-24 00:51:54
问题 Is there anyway to get an email sent without putting the password into the code ? There are many email api-s that enables to send an email with entering the username and password. Example sendEmail("myemail@gmail.com","mypass","subject","msg body"); Is there any way around the problem with hard-coding the password in code ? 回答1: You have three options to send email: You include your email and password into the code and in this case the application will send emails from this email address. You

Securing a folder in ASP.NET web directory

心不动则不痛 提交于 2019-12-23 02:36:34
问题 I worked long time back on a website and it has been working fine, recently a problem has been reported, which I need to go through. In my site there is a folder named repository, which contains files like word and PDF documents and ideally only logged in users are allowed to download them but now it has been observed that anyone who is not logged into the website, can even also download them :( Is there any wayout to handle it without moving the folder out of the web directory? Like making