Skip to content

Commit 117712a

Browse files
committed
2 parents 2a5a82c + d0eeaa9 commit 117712a

File tree

6 files changed

+41
-2
lines changed

6 files changed

+41
-2
lines changed

Encryption App/AES/pbkdf2hash.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Security.Cryptography;
3+
4+
namespace PBKDF2Hash
5+
{
6+
private static byte[] GenerateSalt()
7+
{
8+
var csprng = new RNGCryptoServiceProvider();
9+
var salt = new byte[32];
10+
csprng.GetBytes(salt);
11+
return salt;
12+
}
13+
14+
public static (byte[] hash, byte[] salt) pbkdf2hash(string password)
15+
{
16+
17+
string password = "passwd";
18+
byte[] salt = GenerateSalt();//warning shouldnt be random salts - change when you try and decrypt no?
19+
int iterations = 100000;
20+
byte[] hashValue;
21+
using (var pbkdf2 = new Rfc2898DeriveBytes(password, salt, iterations))
22+
{
23+
hashValue = pbkdf2.GetBytes(32);
24+
}
25+
return (hashValue,salt);
26+
}
27+
}

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
# EncryptionApp
1+
# EncryptionApp
2+
3+
## Documentation:
4+
5+
6+
## To do:
7+
* [AES](https://github.com/johnkellyoxford/EncryptionApp/tree/master/Encryption%20App/AES):
8+
* decryption algorithm and move to seperate file
9+
* RSA
10+
* Incorporate microsoft data protector
11+
* .crypt header files
12+
* Create documentation and tutorial
13+
* create a microsoft installer application with certificates --> trust
14+
* Sell rip-off usb drives with this content on

todo.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
-5 KB
Binary file not shown.

utils/Executables/HelloWorld.exe

-3.5 KB
Binary file not shown.

utils/Executables/Protector.exe

-5.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)