Skip to content

Instantly share code, notes, and snippets.

View tejpaldev's full-sized avatar

Tejpal Singh tejpaldev

View GitHub Profile
@tejpaldev
tejpaldev / PasswordCryptoServiceProvider.cs
Created December 10, 2021 15:52 — forked from floko84/PasswordCryptoServiceProvider.cs
C# password-based encryption helper class.
using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
public class PasswordCryptoServiceProvider : IDisposable
{
protected const string Base58Chars = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
private readonly SymmetricAlgorithm algorithm;