I am using the Bcrypt.net for encrypting a string in Compact framework, when I try to run this I get this error Method not found AppendFormat "System.text.StringBuilder", and here is my code
string passwordSalt = "$2a$10$XQA3K4ei4x01ZVL0mLYaWOOsZwz3IyBR/5wbrAZ/SQ0OMVzkgBvKK";//stored password hash string hashedString = BCrypt.Net.BCrypt.HashPassword(txtHashString.Text, passwordSalt); MessageBox.Show("The Entrypted password salt is :" + passwordSalt); MessageBox.Show("The hashed String is : " + hashedString); txtBlockHashedString.Text = hashedString;
And as an alternative I had also tried using Derek's version of bcrypt. even this is not working, it throws some error. Could someone please suggest me a better library for hashing string using bcrypt in c# compact framework ?
Varun krishna. P