File tree 4 files changed +2
-26
lines changed
4 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 9
9
Description = ' PowerShell module for cryptography (AES)'
10
10
PowerShellVersion = ' 5.0'
11
11
FunctionsToExport = ' *'
12
- ScriptsToProcess = @ (' Public\Classes\IVGenerator.ps1' )
13
12
PrivateData = @ {
14
13
PSData = @ {
15
14
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ function New-AesKey {
19
19
$aes = New-AesManagedObject
20
20
$aes.GenerateKey ()
21
21
22
-
23
22
if ($Format -eq [AesKeyFormat ]::String) {
24
23
[System.Convert ]::ToBase64String($aes.Key )
25
24
}
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Import-Module -Name Pester -Force
3
3
Import-Module .\Crypto.AES\Crypto.AES.psm1 - Force
4
4
5
5
Describe ' Crypto.AES.Tests' {
6
+ $encoding = [System.Text.UTF8Encoding ]::new()
7
+
6
8
Context " AES key generation" {
7
9
It " Should return key as string - default" {
8
10
New-AesKey | Should - BeOfType [String ]
@@ -15,19 +17,6 @@ Describe 'Crypto.AES.Tests' {
15
17
}
16
18
}
17
19
18
- Context " IVGenerator" {
19
- $obj = [IVGenerator ]::new()
20
- $v1 = $obj.GenerateIV ()
21
- $v2 = $obj.GenerateIV ()
22
-
23
- It " Should return valid type" {
24
- $v1 -is [System.Byte []] | Should - BeTrue
25
- }
26
- It " Should generate unique keys" {
27
- $v1 | Should -Not - Be $v2
28
- }
29
- }
30
-
31
20
Context " Protect-Data - Result" {
32
21
$Key = [byte []]::new(32 )
33
22
$nonce = [byte []]::new(12 )
You can’t perform that action at this time.
0 commit comments