Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. $ pwsh <filename.ps1> "this is my string I want to hash"

$ pwsh <filename.ps1> "this is my string I want to hash"

Scheduled Pinned Locked Moved The Lounge
cryptography
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RENEE BRUTCHER 2024
    wrote on last edited by
    #1

    param ( [string]$target = $(Read-Host) ) $stringAsStream = [System.IO.MemoryStream]::new() $writer = [System.IO.StreamWriter]::new($stringAsStream) $writer.write($target) $writer.Flush() $stringAsStream.Position = 0 $outHash = Get-FileHash -InputStream $stringAsStream | Select-Object Hash $ou

    $ pwsh "this is my string I want to hash"

    tHash.hash.ToLower()

    OriginalGriffO 1 Reply Last reply
    0
    • R RENEE BRUTCHER 2024

      param ( [string]$target = $(Read-Host) ) $stringAsStream = [System.IO.MemoryStream]::new() $writer = [System.IO.StreamWriter]::new($stringAsStream) $writer.write($target) $writer.Flush() $stringAsStream.Position = 0 $outHash = Get-FileHash -InputStream $stringAsStream | Select-Object Hash $ou

      $ pwsh "this is my string I want to hash"

      tHash.hash.ToLower()

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      And? If this is a programming question, then raise it in the right place - as it says at the top of the page this forum is not for questions. Post it here instead: Ask a Question[^] But ... tell us what it does that you didn't expect, or doesn't do that you did. Tell us what you have tried to get it to work, and what happened when you tried it. Tell us what help you need! If it isn't, then what the heck is it? Random code dumps really aren't popular here either!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      J D 2 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        And? If this is a programming question, then raise it in the right place - as it says at the top of the page this forum is not for questions. Post it here instead: Ask a Question[^] But ... tell us what it does that you didn't expect, or doesn't do that you did. Tell us what you have tried to get it to work, and what happened when you tried it. Tell us what help you need! If it isn't, then what the heck is it? Random code dumps really aren't popular here either!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        J Offline
        J Offline
        jochance
        wrote on last edited by
        #3

        This is code from an article I think posted here.

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          And? If this is a programming question, then raise it in the right place - as it says at the top of the page this forum is not for questions. Post it here instead: Ask a Question[^] But ... tell us what it does that you didn't expect, or doesn't do that you did. Tell us what you have tried to get it to work, and what happened when you tried it. Tell us what help you need! If it isn't, then what the heck is it? Random code dumps really aren't popular here either!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          He copied the code from raddevus' post a bit further down, from here[^].

          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups