We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ae5f0 commit d1da472Copy full SHA for d1da472
1 file changed
README.md
@@ -53,20 +53,23 @@ Install-Package NETCore.Encrypt -Version 2.0.1
53
```
54
## DES
55
56
-#### Create DES Key
+- #### Create DES Key
57
58
```csharp
59
+
60
//des key length is 24 bit
61
var desKey = EncryptProvider.CreateDesKey();
62
63
64
-#### DES encrypt
65
+- #### DES encrypt
66
67
68
var srcString = "des encrypt";
69
var encrypted = EncryptProvider.DESEncrypt(srcString, key);
70
-#### DES decrypt
71
72
+- #### DES decrypt
73
74
75
var encryptedStr = "xxxx";
0 commit comments