How to check a has sum file on FreeBSD?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Situation



I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems.



Suppose we have a SHA512SUM file generated on FreeBSD with:



sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM


It looks different from the Linux format, which from Linux can be generated using --tag switch:



SHA512 (encrypt-file-aes256) = 9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017
SHA512 (decrypt-file-aes256) = 893693eec618542b0b95051952f9258824fe7004c360f8e6056a51638592510a704e27b707b9176febca655b7df581c9a6e2220b6511e8426c1501f6b2dd48a9



Question



How do I check this file? There is no --check option in the man page.




Progress



So far, I am only able to manually test a single file with hard-coding the hash sum:



sha512 -c "9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017" encrypt-file-aes256 && echo $?


Scripting-wise, I don't yet see a way of checking the whole SHA512SUM file automatically.



Note, that it may contain many more files than the two as in my case.









share

























    up vote
    0
    down vote

    favorite












    Situation



    I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems.



    Suppose we have a SHA512SUM file generated on FreeBSD with:



    sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM


    It looks different from the Linux format, which from Linux can be generated using --tag switch:



    SHA512 (encrypt-file-aes256) = 9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017
    SHA512 (decrypt-file-aes256) = 893693eec618542b0b95051952f9258824fe7004c360f8e6056a51638592510a704e27b707b9176febca655b7df581c9a6e2220b6511e8426c1501f6b2dd48a9



    Question



    How do I check this file? There is no --check option in the man page.




    Progress



    So far, I am only able to manually test a single file with hard-coding the hash sum:



    sha512 -c "9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017" encrypt-file-aes256 && echo $?


    Scripting-wise, I don't yet see a way of checking the whole SHA512SUM file automatically.



    Note, that it may contain many more files than the two as in my case.









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Situation



      I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems.



      Suppose we have a SHA512SUM file generated on FreeBSD with:



      sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM


      It looks different from the Linux format, which from Linux can be generated using --tag switch:



      SHA512 (encrypt-file-aes256) = 9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017
      SHA512 (decrypt-file-aes256) = 893693eec618542b0b95051952f9258824fe7004c360f8e6056a51638592510a704e27b707b9176febca655b7df581c9a6e2220b6511e8426c1501f6b2dd48a9



      Question



      How do I check this file? There is no --check option in the man page.




      Progress



      So far, I am only able to manually test a single file with hard-coding the hash sum:



      sha512 -c "9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017" encrypt-file-aes256 && echo $?


      Scripting-wise, I don't yet see a way of checking the whole SHA512SUM file automatically.



      Note, that it may contain many more files than the two as in my case.









      share













      Situation



      I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems.



      Suppose we have a SHA512SUM file generated on FreeBSD with:



      sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM


      It looks different from the Linux format, which from Linux can be generated using --tag switch:



      SHA512 (encrypt-file-aes256) = 9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017
      SHA512 (decrypt-file-aes256) = 893693eec618542b0b95051952f9258824fe7004c360f8e6056a51638592510a704e27b707b9176febca655b7df581c9a6e2220b6511e8426c1501f6b2dd48a9



      Question



      How do I check this file? There is no --check option in the man page.




      Progress



      So far, I am only able to manually test a single file with hard-coding the hash sum:



      sha512 -c "9170caaa45303d2e5f04c21732500980f3b06fc361018f953127506b56d3f2f46c95efdc291e160dd80e39b5304f327d83fe72c625ab5f31660db9c99dbfd017" encrypt-file-aes256 && echo $?


      Scripting-wise, I don't yet see a way of checking the whole SHA512SUM file automatically.



      Note, that it may contain many more files than the two as in my case.







      freebsd hashsum





      share












      share










      share



      share










      asked 4 mins ago









      Vlastimil

      6,9401152125




      6,9401152125

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476479%2fhow-to-check-a-has-sum-file-on-freebsd%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476479%2fhow-to-check-a-has-sum-file-on-freebsd%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay