password-protection

Password protecting an asp.net site using a log in page

喜你入骨 提交于 2019-12-08 11:00:44
问题 I am trying to password protect an asp.net site, i have done this okay, however if they put /home.aspx at the end of the address then it will by pass the log in page, is there a way of making those other pages only accessible through the buttons, and if they are accessed directly it will redirect you to the login page? THanks 回答1: At the moment you login you should start a session. This is some code I used in one of my high school projects > public void LoginUser(string id, string mail,

Setting Password for phpMyAdmin

半腔热情 提交于 2019-12-08 06:26:04
问题 I am using rhel 5 and php 5 with mysql 5. My server is already configured and running all applications smoothly. I am accessing mysql as root and password is 'anitha123'. but when i am accessing phpmyadmin through browser, it is not asking for password. Somebody please tell me how can i set it like prompting for username ans password. Since i am not familiar with php mysql please tell me how to do it in simple way. 回答1: find phpmyadmin.conf and set auth type it to http /* Authentication type

run script before boot options apears

跟風遠走 提交于 2019-12-08 06:14:48
问题 Do any of you guys know if it's possible to run a script before i get the option to enter bios and before OS boots? Example: i want to secure my pc with a script that requires me to press certain keys before the screen where i have the boot options apears (because passwords can be cracked, even bios, i don't trust them) ps: i have been looking into this problem for a couple of hours and i couldn't find anything :(. i just need to know what language to use and where to insert the script.

How can I password protect a binary file download?

青春壹個敷衍的年華 提交于 2019-12-08 01:54:28
问题 I would like to create a very simple php protector on an arbitrary binary file, where the user enters a password and the file is downloaded to their computer, but they must enter the password each time they want to download. In the first answer to the question Easy way to password-protect php page, the line include("secure.html"); seems to require that the file has to be displayable ascii, renderable by the browser. Is there a way to protect a binary file, say foo.bin with the same level of

Trying to port C# function to PHP5

血红的双手。 提交于 2019-12-07 23:58:34
I'm trying to convert this function into PHP but somehow it does not give same results. public static string EncodePassword(string pass, string salt) { byte[] bytes = Encoding.Unicode.GetBytes(pass); byte[] src = Convert.FromBase64String(salt); byte[] dst = new byte[src.Length + bytes.Length]; byte[] inArray = null; Buffer.BlockCopy(src, 0, dst, 0, src.Length); Buffer.BlockCopy(bytes, 0, dst, src.Length, bytes.Length); HashAlgorithm algorithm = HashAlgorithm.Create("SHA1"); inArray = algorithm.ComputeHash(dst); return Convert.ToBase64String(inArray); } This is my take on that in PHP function

Securing a folder in ASP.NET web directory

烂漫一生 提交于 2019-12-07 22:29:29
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 that folder password protected and only my pages can access the content, any code sample or link will be

Safely storing credentials when I need to retrieve the password for use

自古美人都是妖i 提交于 2019-12-07 21:07:56
问题 Does Microsoft or Windows provide a mechanism for access to a set of credentials, where I can't just store a salted version of the password; namely I need to have the password itself. I have a webservice that responds to requests where if the user is authenticated and belongs to a distribution list, a job needs to start on a unix machine using a unix account. I'm using the fantastic ssh.net library to remote from the web service to the linux machine and start the required process but up to

Bash script to skip extraction of password protected archives

放肆的年华 提交于 2019-12-07 14:16:34
问题 I have a script, which performs mass extraction of specific zip and\or tar.gz archives in some folders using command: unzip -o "$zip_path" -d "$destination_folder" Unfortunately, when archive is password-protected, script stops and waiting for password input. Is there any way to omit password entering stage to not interrupt script running? P.S. There is no need to extract password-protected files. Only omit this archives. Something like: if "$zip_path" [ determine that archive is password

Add a password protection to an existing pdf file using PDFKit iOS

江枫思渺然 提交于 2019-12-07 13:50:59
问题 I wanted to add a password protection to an existing pdf file in my application. Here's my code: if let path = Bundle.main.path(forResource: "pdf_file", ofType: "pdf") { let url = URL(fileURLWithPath: path) if let pdfDocument = PDFDocument(url: url) { pdfDocument.write(to: url, withOptions: [PDFDocumentWriteOption.userPasswordOption : "pwd"]) pdfView.displayMode = .singlePageContinuous pdfView.autoScales = true // pdfView.displayDirection = .horizontal pdfView.document = pdfDocument } } Added

Data from password protected website using VBA

坚强是说给别人听的谎言 提交于 2019-12-07 12:14:46
问题 using Excel 2007 and VBA 6.5 I'm trying to automate a data collection task, however i keep running into the "Runtime Error 91 - "Object Variable or With Block Variable not Set." Is this a reference issue or does it have to do with my script. Thanks. Script is included below (password and variable protected) Sub Basic_Web_Query() Set ie = CreateObject("InternetExplorer.Application") With ie .Visible = True .Navigate "https://www.urbics.com/Login.php" Do Until .ReadyState = 4 DoEvents Loop