tagged [security]

Implementation of "remember me" in code igniter

Implementation of "remember me" in code igniter How do i remember sessions, even after browser is closed. is there any alternative than extending expire time of cookies. i am using code igniter

Developing licenses in C# - where do I start?

Developing licenses in C# - where do I start? I'm interested to find out whether there are any standards or resources that you can recommend for developing license models in C#?

18 May at 16:23

C# How to determine if HTTPS

C# How to determine if HTTPS How do I determine and force users to view my website using HTTPS only? I know it can be done through IIS, but want to know how its done programmatically.

13 Jul at 15:32

Remove All Directory Permissions

Remove All Directory Permissions In C# (2.0) How do I remove all permissions to a directory, so I can limit the access. I will be adding access back to a limited set of users.

2 Sep at 19:50

Using SecureString

Using SecureString Can this be simplified to a one liner? Feel free to completely rewrite it as long as secureString gets initialized properly.

10 Mar at 20:9

Securing a password in source code?

Securing a password in source code? I have a password in my code which is needed to connect to a sftp server. Whats the best way to "obfuscate" or hide it in the code? Thanks

1 Jun at 16:56

Retrieve the Active Directory groups of the current user

Retrieve the Active Directory groups of the current user How can I get the Active Directory groups the current user belongs to? Is there a way to do this using the `DirectoryServices.AccountManagement...

19 Aug at 19:59

Algorithm to avoid SQL injection on MSSQL Server from C# code?

Algorithm to avoid SQL injection on MSSQL Server from C# code? What would be the best way to avoid SQL injection on the C#.net platform. Please post an C# implementation if you have any.

30 Oct at 10:4

Are buffer overflow exploits possible in C#?

Are buffer overflow exploits possible in C#? Assuming that a C# program uses only managed .NET code, is it possible to have a buffer overflow security vulnerability within that program? If so, how wou...

1 May at 16:12

Cannot ping AWS EC2 instance

Cannot ping AWS EC2 instance I have an EC2 instance running in AWS. When I try to ping from my local box it is not available. How can I make the instance pingable?

How can I sanitize user input with PHP?

How can I sanitize user input with PHP? Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML t...

Role based security asp.net mvc

Role based security asp.net mvc I'm interested in knowing what are the best practices for using role based security in MVC: how to secure your actions and make them accessible by specific roles only?

17 Apr at 10:47

What is the difference between a cer, pvk, and pfx file?

What is the difference between a cer, pvk, and pfx file? What is the difference between a cer, pvk, and pfx file? Also, which files do I keep and which am I expected to give to my counter-parties?

1 Sep at 18:2

C# generic with constant

C# generic with constant Is there something similar to this C++ template? I want to make every instance of B, B, etc (eg tuple) a different type.

8 Jan at 22:25

How can I set the Secure flag on an ASP.NET Session Cookie?

How can I set the Secure flag on an ASP.NET Session Cookie? How can I set the Secure flag on an ASP.NET Session Cookie, so that it will only be transmitted over HTTPS and never over plain HTTP?

18 Sep at 06:29

C#. How to programmatically grant User Log On as a Service

C#. How to programmatically grant User Log On as a Service I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in ...

17 Aug at 08:34

RESTful Authentication

RESTful Authentication What does RESTful Authentication mean and how does it work? I can't find a good overview on Google. My only understanding is that you pass the session key (remeberal) in the URL...

How to reset Jenkins security settings from the command line?

How to reset Jenkins security settings from the command line? Is there a way to reset all (or just disable the security settings) from the command line without a user/password as I have managed to com...

23 Feb at 16:17

What is Thread.CurrentPrincipal, and what does it do?

What is Thread.CurrentPrincipal, and what does it do? What is `Thread.CurrentPrincipal` used for? How does it help in the Authentication and Authorization of an application? Are there any articles or ...

Random number in range [min - max] using PHP

Random number in range [min - max] using PHP Is there a way to generate a random number based on a min and max? For example, if min was 1 and max 20 it should generate any number between 1 and 20, inc...

12 Aug at 19:18

How to hash a password

How to hash a password I'd like to store the hash of a password on the phone, but I'm not sure how to do it. I can only seem to find encryption methods. How should the password be hashed properly?

Are HTTPS headers encrypted?

Are HTTPS headers encrypted? When sending data over HTTPS, I know the content is encrypted, however I hear mixed answers about whether the headers are encrypted, or how much of the header is encrypted...

10 Jan at 20:55

Google Appengine URL security

Google Appengine URL security Is it possible to ensure that GET/POST requests to a particular url of my Appengine app, AJAX or not, can only be made from within the app and not from outside (ie) all r...

20 Oct at 12:31

Best practices for storing secret keys

Best practices for storing secret keys I have an asp.net app, and I want to store a machine wide encryption key that I will be using in the apps, when using DPAPI crypto system. What are the best prac...

10 Jan at 22:52

Store sensitive information inside keepass database from c#

Store sensitive information inside keepass database from c# I have a project where I have to handle sensitive data. How do I open a `keepass` database from C# to use the data? I have downloaded the so...

15 Jul at 04:24