[discussion] Feature 509. Add SHA1 and SHA256 checksum support for files

Need some brainstorming over this. Warning, not the cleanest code and an awful amount  of copy and paste.