Git Product home page Git Product logo

powerrsa's People

Contributors

gimini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

powerrsa's Issues

misspelling of Is-PrimeRabbinMiller

A minor bug in code,
$prime = Is-PrimeRabbinMiller $generatedPrime 40

you have Is-PrimeRabbinMiller
function only has one 'b' Is-PrimeRabinMiller

How can I encrypt a file using this script?

Hi. I tried to pipe a file output to the script encode input and this is what it says (I've redacted the actual path, that isn't actually important):

PS C:\REDACTED> Get-Content .\REDACTED.EXT | .\PowerRSA.ps1 -Method Enc -Exponent .\rsa\PrivateKey -Modulus .\rsa\Modulus

C:\REDACTED\PowerRSA.ps1 : The input object cannot be bound to any parameters for the command either because the comman
d does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At line:1 char:34
+ ... tage5.ps1 | .\PowerRSA.ps1 -Method Enc -Exponent .\rsa\PrivateKey -Mo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (#TZsejlAdIwWSuD...CtZSsIfbVKQyxUy:PSObject) [PowerRSA.ps1], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,PowerRSA.ps1

C:\REDACTED\PowerRSA.ps1 : The input object cannot be bound to any parameters for the command either because the comman 
d does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At line:1 char:34
+ ... tage5.ps1 | .\PowerRSA.ps1 -Method Enc -Exponent .\rsa\PrivateKey -Mo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: ($xzVCMzeJliXK='...xzVCMzeJliXK))):PSObject) [PowerRSA.ps1], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,PowerRSA.ps1

What is going on? How can I encode a file? Do I need to escape those characters at the beginning of the two lines? Does the file need to have only a single line? They're kinda important, both the $ and # characters, and the two lines...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.