From dec43b48e97a7fb3bdfd8158ca9a49bbacf1f0b4 Mon Sep 17 00:00:00 2001 From: Chen Yi-Cyuan Date: Sun, 5 Jan 2014 12:11:10 +0800 Subject: [PATCH] add license --- LICENSE.txt | 20 ++++++++++++++++++++ README.md | 3 +++ package.json | 1 + src/sha256.js | 10 ++++++++++ 4 files changed, 34 insertions(+) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..b594ef2 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,20 @@ +Copyright 2013 emn178@gmail.com + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index f8345bc..85b99f2 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,9 @@ And then you could use like this: 'message'.sha256(); 'message'.sha224(); ``` +## License +The project is released under the [MIT license](LICENSE.txt). + ## Contact The project's website is located at https://github.com/emn178/js-sha256 Author: emn178@gmail.com diff --git a/package.json b/package.json index 930841d..399b3e7 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "cryptography", "HMAC" ], + "license": "MIT", "author": "emn178 ", "homepage": "https://github.com/emn178/js-sha256", "bugs": { diff --git a/src/sha256.js b/src/sha256.js index 6427746..d7505d2 100644 --- a/src/sha256.js +++ b/src/sha256.js @@ -1,3 +1,13 @@ +/* + * js-sha256 v0.1.0 + * https://github.com/emn178/js-sha256 + * + * Copyright 2014, emn178@gmail.com + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/MIT + */ + (function(root, undefined){ 'use strict';