Search found 112 matches

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

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: 4306

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: 4306

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
by jsira2003@yahoo.com
Sun Jan 27, 2019 9:01 am
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 4306

Re: GetNetworkCredential difficulties

First all let me say I appreciate all your help! I saw the many listing on the web regarding this ugly error. It certainly is ugly. The thing I cannot wrap my head around is the following: It does not work as a packaged app. Yet is work perfectly in ise. As you can see once the function has the file...
by jsira2003@yahoo.com
Sat Jan 26, 2019 2:28 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 4306

Re: GetNetworkCredential difficulties

I executed my code with your error catching. I will see if I can catch error before packaging as you said in the ps studio. From what I read it seems as if the expected byte counts are off in the Encrypted string.

This is tricky stuff
John
by jsira2003@yahoo.com
Sat Jan 26, 2019 1:56 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 4306

Re: GetNetworkCredential difficulties

I now have an error message. I am not sure why I have it but I think I'm going to learn more today. The message is: padding is invalid and cannot be removed At this point I am not sure where to adjust it. From what I read the padding should be the same on both the encrypting and decrypting side. If ...
by jsira2003@yahoo.com
Sat Jan 26, 2019 1:29 pm
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 4306

Re: GetNetworkCredential difficulties

I take it the erroractionpreference stop will stop function if an error is encounter after reporting message.
by jsira2003@yahoo.com
Sat Jan 26, 2019 10:59 am
Forum: Windows PowerShell
Topic: GetNetworkCredential difficulties
Replies: 40
Views: 4306

GetNetworkCredential difficulties

The following function works well in the powershell ise. I supply the encrypted file. I get an a userkey array returned. Works like a champ. If I work this within my application built by powershell studio the following line returns nothing: $Secure2 = $aline | ConvertTo-SecureString -Key ($key) I ha...
by jsira2003@yahoo.com
Mon Jan 14, 2019 11:55 am
Forum: PowerShell Studio
Topic: code signing certificates
Replies: 3
Views: 819

Re: code signing certificates

One last question should do it for me. Should the certificate request be made for the machine or the user. I saw something that said the user. Do you have any thoughts on this?

thank,
John
by jsira2003@yahoo.com
Sat Jan 12, 2019 8:51 am
Forum: PowerShell Studio
Topic: code signing certificates
Replies: 3
Views: 819

code signing certificates

I tried a go daddy certificate and I failed to set up the csr. Worked with their support and that went bust. Their documentation and assistance was awful. ssltrust has good info on the process so i am almost ready to try again at the comodo store. There are 4 types of certificate under consideration...