Changes

Jump to: navigation, search

DPS909/OSD600 Fall 2017 Lab 6/7

138 bytes added, 14:52, 11 October 2017
Step 1: Design a Library for Obtaining File Info
* [https://en.wikipedia.org/wiki/SHA-1 sha1 digest] for a file at the given path. For example, given a path like <code>"/home/kim/mydata.txt"</code>, which contains the text <code>The quick brown fox jumps over the lazy dog</code>, return <code>2fd4e1c67a2d28fced849ee1bb76e7391b93eb12</code>
* [https://en.wikipedia.org/wiki/MD5 MD5 digest] for a file at the given path. For example, given a path like <code>"/home/kim/mydata.txt"</code>, which contains the text <code>The quick brown fox jumps over the lazy dog</code>, return <code>9e107d9d372bb6826bd81d3542a419d6</code>
 
There are various online tools you can use to generate digests for SHA-1 and MD5 while testing, for example http://www.sha1-online.com/.
==Step 2: Pick a Language==

Navigation menu