Skip to main content

Questions tagged [securestring]

A SecureString object is a String-type designed for sensitive information.

1 vote
1 answer
827 views

Secure database connection in PHP

I have this code I use to connect to the database and get a thing from it secure, How can I make more secure?? ...
TheCrazyProfessor's user avatar
12 votes
1 answer
21k views

Secure way to store and load password in app config

I am trying to figure out a good way to store and load a password in the application configuration of my C# application. To achieve this I use the BouncyCastle library and the DPAPI from Windows. To ...
BoeseB's user avatar
  • 378
8 votes
4 answers
5k views

Hacking a SecureString based on std::basic_string for C++

Inspired by reading "How-to write a password-safe class?", I tried some clever (or dumb-fool) hack to create a widely-useable secure string using the ...
Deduplicator's user avatar
  • 19.3k
8 votes
2 answers
11k views

Converting a SecureString to a byte array

Does it allocates something that hasn't freed? Something that remains in memory? Except result byte array, ofc. ...
Artem Sokolov's user avatar
6 votes
1 answer
162 views

Password building and verification

I'm building a library for myself to use to store user passwords. The library itself shouldn't do the retrieval of data, but it should provide container classes for the data. I would like to know ...
blipman17's user avatar
  • 173
2 votes
2 answers
883 views

Sharepoint Authentication Helpers

I'm working on a rather large SharePoint project that's going to contain helper classes for a variety of item levels (sites, webs, lists, items, etc'). When writing code I'm expecting that the same ...
Michael A's user avatar
  • 1,651
7 votes
1 answer
2k views

Hashing a SecureString using Cryptography Next Generation

Goal: I needed to calculate the salted hash of a password, where the password is stored as a SecureString. There doesn't seem to be much .NET framework support for SecureString. In particular, none ...
jnm2's user avatar
  • 403
8 votes
1 answer
294 views

Adding SecureString support to Lib2GitSharp

A library that I use doesn't support SecureString in its credentials for connecting to GitHub, so I'm submitting a pull request to add it. I know it's not ideal to ...
RubberDuck's user avatar
  • 30.8k
5 votes
1 answer
2k views

SecureString as SqlParameter value without GC concerns

The purpose here is to make it easy to use sensitive data that is already in the form of a SecureString (example) without converting it to a ...
jnm2's user avatar
  • 403
6 votes
1 answer
2k views

Passing a password to a viewmodel

I've got a project I've been working on that connect to a file server and writes some data to a text file. In order to do this I added a textbox for the user to type their username and a passwordbox ...
Pallas's user avatar
  • 163