Search found 109 matches

by jsira2003@yahoo.com
Sun Jan 27, 2019 7:28 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

I still can't get over works in ise and not packaged. That doesn't make sense. The logic is the same, however the environment is different.
by jsira2003@yahoo.com
Sun Jan 27, 2019 7:13 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

Well as it turns out type [byte[]] array didn't change the outcome. I recreated by key file and put it where expected.

John
by jsira2003@yahoo.com
Sun Jan 27, 2019 6:59 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

I'll use 32 bytes.
by jsira2003@yahoo.com
Sun Jan 27, 2019 6:58 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

[Byte[]]$key = (200,48,29,36,41,100,7,9)
$key.GetType()

I will change it to this and see what happens.

John
by jsira2003@yahoo.com
Sun Jan 27, 2019 6:23 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

Excuse my lack of knowledge, I fail to see how the byte size of the data is padded properly. How does this make the character fill correct? I see how you specify your key size. That is all i see. # generate a custom key with correct length $keyLength = 16 # valid values are 16,24,32 $EncryptKey = [b...
by jsira2003@yahoo.com
Sun Jan 27, 2019 6:17 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

$Key = [system.Text.Encoding]::UTF8.GetBytes('1234561234567890')

as opposed to

$key = (200,45,10,...)

I'm not sure how I'd represent what I wrote as above. Is it necessary to represent the byte array that way? I think utf8 is specifying a font. I'm trying to wrap my head around it.

John
by jsira2003@yahoo.com
Sun Jan 27, 2019 6:11 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

I think my error was that the size of the text I was encrypting did not have the correct byte count. That makes sense according to the error message invalid padding.

John
by jsira2003@yahoo.com
Sun Jan 27, 2019 5:53 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

I am encrypting an entire file of anywhere between 6 and 19 lines at most. I will read all your posts! I have my work cut out for me digesting it all.

thank you,
John
by jsira2003@yahoo.com
Sun Jan 27, 2019 11:40 am
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

This is geared for multiple apps. I embed key in the app for a particular version. The call EncryptUserData $startDate $endDate $textboxuuid.Text $textboxipaddress.Text $Program $version $file The encrypt function Function EncryptUserData([string]$startDate, [string]$endDate, [string]$uuid, [string]...
by jsira2003@yahoo.com
Sun Jan 27, 2019 9:27 am
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 3863

Re: GetNetworkCredential difficulties

I reread your email about the byte array begins wrong. I have an array of 32 bytes with values from 0 to 255 e.g.

$global:byteArray = (25, 200, 48, ...)

Is there any problem here?

Thanks,
John