Really simple encryption with C# and SymmetricAlgorithm

If you don’t want to handle keys yourself then let the operating system do it for your. E.g. use Windows Data Protection (DPAPI). You can write your own, string-based, version of System.Security.Cryptography.ProtectedData.Protect and Unprotect methods by using something like: public static string Crypt (this string text) { return Convert.ToBase64String ( ProtectedData.Protect ( Encoding.Unicode.GetBytes (text) ) … Read more

Comparison of DES, Triple DES, AES, blowfish encryption for data

Use AES. In more details: DES is the old “data encryption standard” from the seventies. Its key size is too short for proper security (56 effective bits; this can be brute-forced, as has been demonstrated more than ten years ago). Also, DES uses 64-bit blocks, which raises some potential issues when encrypting several gigabytes of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)