File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/Tests/SmartStore.Services.Tests/Security Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ public class EncryptionServiceTests : ServiceTest
16
16
{
17
17
_securitySettings = new SecuritySettings ( )
18
18
{
19
- EncryptionKey = "273ece6f97dd844d"
19
+ //EncryptionKey = "273ece6f97dd844d",
20
+ EncryptionKey = "3742404997253102"
20
21
} ;
21
22
_encryptionService = new EncryptionService ( _securitySettings ) ;
22
23
}
@@ -39,5 +40,19 @@ public void Can_encrypt_and_decrypt()
39
40
var decryptedPassword = _encryptionService . DecryptText ( encryptedPassword ) ;
40
41
decryptedPassword . ShouldEqual ( password ) ;
41
42
}
43
+
44
+ [ Test ]
45
+ public void Can_encrypt_and_decrypt2 ( )
46
+ {
47
+ var test = "3345786499234591" ;
48
+
49
+ var encrypted = _encryptionService . EncryptText ( test ) ;
50
+ var decrypted = _encryptionService . DecryptText ( encrypted ) ;
51
+
52
+ decrypted . ShouldEqual ( test ) ;
53
+
54
+ encrypted = "zY0jkmIwNfU=" ;
55
+ decrypted = _encryptionService . DecryptText ( encrypted ) ;
56
+ }
42
57
}
43
58
}
You can’t perform that action at this time.
0 commit comments