mainThe GNU Bourne-Again SHell - Support: sr #108103, Add a sha/md5 crytographic...

 
 

sr #108103: Add a sha/md5 crytographic digest/hash generation to verify scripts before execution - and other uses.

Submitter:  None
Submitted:  Wed 08 Aug 2012 06:24:15 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Nov 2013 04:06:01 AM UTC, comment #2: 

I'd have to agree with Jonathan.  You could make shell functions to wrap source and exec, and use them for files that might have changed.

 Or you could put the "check-for-change and then execute" logic into a file, and have the possibly-updated file in another location.  So you'd get the protection you want for just the files you do this for, without having to change every possible caller.

Peter Cordes <pcordes>
Fri 01 Nov 2013 01:16:22 AM UTC, comment #1: 

Hi, this is my first post here, I really want to help with some code. In this case I can't figure out why this should be built-in in bash, if you can easily calculate the md5 or sha-1 of any file on the command line?

Jonathan Granade <webbie>
Wed 08 Aug 2012 06:24:15 PM UTC, original submission:  

With the rise of services like dropbox, it makes it possible for a user to store 'shared' bashrc scripts in these services.

This is a feature request to add SHA or other cryptographic hash ability as a builtin so that for example a hash can be passed to an exec or source and a message can be printed to inform the user that the script has been modified.



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by pcordes (Posted a comment)
  • -email is unavailable- added by webbie (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-13 chet StatusNone Wont Do

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code