SHA1
should be a function.
testString: assert(typeof SHA1 === 'function');
- text: SHA1("abc")
should return a string.
testString: assert(typeof SHA1("abc") === 'string');
- text: SHA1("abc")
should return "a9993e364706816aba3e25717850c26c9cd0d89d"
.
testString: assert.equal(SHA1("abc"), "a9993e364706816aba3e25717850c26c9cd0d89d");
- text: SHA1("Rosetta Code")
should return "48c98f7e5a6e736d790ab740dfc3f51a61abe2b5"
.
testString: assert.equal(SHA1("Rosetta Code"), "48c98f7e5a6e736d790ab740dfc3f51a61abe2b5");
- text: SHA1("Hello world")
should return "7b502c3a1f48c8609ae212cdfb639dee39673f5e"
.
testString: assert.equal(SHA1("Hello world"), "7b502c3a1f48c8609ae212cdfb639dee39673f5e");
- text: SHA1("Programming")
should return "d1a946bf8b2f2a7292c250063ee28989d742cd4b"
.
testString: assert.equal(SHA1("Programming"), "d1a946bf8b2f2a7292c250063ee28989d742cd4b");
- text: SHA1("is Awesome")
should return "6537205da59c72b57ed3881843c2d24103d683a3"
.
testString: assert.equal(SHA1("is Awesome"), "6537205da59c72b57ed3881843c2d24103d683a3");
```