Questions tagged [cryptsharp]

CryptSharp is .net libraray which provides a number of password crypt algorithms

CryptSharp provides a number of password crypt algorithms - BCrypt, LDAP, MD5 (and Apache's htpasswd variant), PHPass (WordPress, phpBB, Drupal), SHA256, SHA512, and Traditional and Extended DES. Additionally, it includes Blowfish, SCrypt, and PBKDF2 for any HMAC (.NET's built-in PBKDF2 implementation supports only SHA-1). If you are looking to store passwords, odds are CryptSharp has the algorithm you want.

Install through NuGet package manager:

PM> Install-Package CryptSharpOfficial
4 questions
1
vote
1 answer

CryptSharp SCrypt implementation in C#

I'm working on a CryptSharp SCrypt implementation in VS2015. I need to encrypt/decrypt text files meant to be sent as email attachments. Initially I was using AES but considering that HMAC-SHA1 is outdated I opted to use SCrypt for password hashing.…
Frank
  • 45
  • 1
  • 7
1
vote
1 answer

Check drupal 7 password to C#

I am using CryptSharp official version for Checking drupal password hash but I am always getting false, Libarary doesn't have any direct documentation for drupal 7 password 7 but it is saying it has drupal 7 support on nuget description. Using this…
Govind Malviya
  • 13,627
  • 17
  • 68
  • 94
-1
votes
1 answer

Cryptsharp C# Visual Studio 2022 no definition

I've tried to run string cryptedPassword = Crypter.MD5.Crypt(Passwort, new CrypterOptions() { {CrypterOption.Variant, MD5CrypterVariant.Apache} }); from the cryptsharp documentation But I don't seem to be able to run…
bountyx
  • 3
  • 2
-1
votes
1 answer

How to validate inputs with CryptSharp?

Using the following unction you can encrypt an input string with bcrypt. public static string CreatePassword(string password) { // no need to provide a Salt value since bcrypt does that automatically byte[] PasswordBytes =…
Ortund
  • 8,095
  • 18
  • 71
  • 139