Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - Encrypting files?

Reply
 
Old 11-29-2007   #1 (permalink)
Jarod
Guest


 
 

Encrypting files?

Hi!

I need a script to encrypt / decrypt file using some good algorithm like RSA
or sth like this. It's for home use.

For example I would have script that needs password and file name on a start
and than encrypts or decrypts file.

Woudl be cool if it could recognize extension eg. .enc would be encrypted so
if file name is passwords.enc than it decrypts it.

RSA algorithm is available through .net classes ( it can be any other
algorithm if you know better one).

I just feel it would be good to have some extra privacy.

Jedrzej

My System SpecsSystem Spec
Old 11-29-2007   #2 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: Encrypting files?

Jarod wrote:
Quote:

> Hi!
>
> I need a script to encrypt / decrypt file using some good algorithm like RSA
> or sth like this. It's for home use.
>
> For example I would have script that needs password and file name on a start
> and than encrypts or decrypts file.
>
> Woudl be cool if it could recognize extension eg. .enc would be encrypted so
> if file name is passwords.enc than it decrypts it.
>
> RSA algorithm is available through .net classes ( it can be any other
> algorithm if you know better one).
>
> I just feel it would be good to have some extra privacy.
>
> Jedrzej
www.powerlocker.com is an easy solution.

There are some .NET classes also:
http://mshforfun.blogspot.com/2006/0...istrators.html

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 11-29-2007   #3 (permalink)
Jarod
Guest


 
 

Re: Encrypting files?

I didn't say i want to encrypt script file i want to encrypt any file to keep
my privacy eg. passwords file or private documents...

Jedrzej

"Marco Shaw [MVP]" wrote:
Quote:

> Jarod wrote:
Quote:

> > Hi!
> >
> > I need a script to encrypt / decrypt file using some good algorithm like RSA
> > or sth like this. It's for home use.
> >
> > For example I would have script that needs password and file name on a start
> > and than encrypts or decrypts file.
> >
> > Woudl be cool if it could recognize extension eg. .enc would be encrypted so
> > if file name is passwords.enc than it decrypts it.
> >
> > RSA algorithm is available through .net classes ( it can be any other
> > algorithm if you know better one).
> >
> > I just feel it would be good to have some extra privacy.
> >
> > Jedrzej
>
> www.powerlocker.com is an easy solution.
>
> There are some .NET classes also:
> http://mshforfun.blogspot.com/2006/0...istrators.html
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Old 11-29-2007   #4 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: Encrypting files?

Jarod wrote:
Quote:

> I didn't say i want to encrypt script file i want to encrypt any file to keep
> my privacy eg. passwords file or private documents...
Quote:
Quote:

>> There are some .NET classes also:
>> http://mshforfun.blogspot.com/2006/0...istrators.html
OK, the above will still work for you, but it all seems like overkill
for documents and such.

How about EFS:
http://technet.microsoft.com/en-us/l.../bb457065.aspx

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 11-29-2007   #5 (permalink)
Karl Prosser[MVP]
Guest


 
 

Re: Encrypting files?

the dotnet framework has RSA and other agorithms in there, just google.
I can't remember off hand what the namespace is, but its just a few
lines of code in C# or powershell to read in a stream of a file, run the
RSA algoritm over it, and then write out to a stream.

Sincerely,
Karl Prosser
http://www.powershell.com

Jarod wrote:
Quote:

> Hi!
>
> I need a script to encrypt / decrypt file using some good algorithm like RSA
> or sth like this. It's for home use.
>
> For example I would have script that needs password and file name on a start
> and than encrypts or decrypts file.
>
> Woudl be cool if it could recognize extension eg. .enc would be encrypted so
> if file name is passwords.enc than it decrypts it.
>
> RSA algorithm is available through .net classes ( it can be any other
> algorithm if you know better one).
>
> I just feel it would be good to have some extra privacy.
>
> Jedrzej
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Help with Encrypting Files onto a Flash Drive Vista file management
Encrypting files without loosing date stamp Vista security
encrypting files Vista security
Bitlocker not encrypting? Vista security
Encrypting offline files Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46