Skip to content

Commit

Permalink
6.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Sep 11, 2016
1 parent f28fe3b commit 567c128
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 11 deletions.
12 changes: 11 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@

ChangeLog for jsrsasign

* Changes between 5.1.0 to 6.0.0 (2016-Sep-11)
- As of so much request to remove Node functions
in nodeutil.js, nodeutil.js have been removed from
jsrsasign.js package. Then it is moved to
new "jsrsasign-util" npm package.
Now "jsrsasign" will be CommonJS, Purescript,
Webpack and Browserify safe package.
Some sample Node.js scripts in "sample_node"
will be updated later.

* Changes between 5.0.15 to 5.1.0 (2016-Sep-07)
- jwsjs 2.0.x to 2.1.0
- jwsjs 2.0.15 to 2.1.0
- refactoring and API document update
- addSignature, verifyAll, verifyNth method added
- make addSignatureByHeaderKey,
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ <h3>FEATURES</h3>

<h3>NEWS</h3>
<dl>
<dt><b>2016-Sep-11</b>:
<dd><a href="https://github.com/kjur/jsrsasign/releases/tag/6.0.0">
Release 6.0.0</a> is now available.
Now "jsrsasign" become "fs" safe so that it will be available
for CommonJS or Webpack.

<dt><b>2016-Sep-03</b>:
<dd><a href="slide_e/">Slides for jsrsasign introduction</a> is available.

Expand Down
5 changes: 1 addition & 4 deletions jsrsasign-latest-all-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions npm/lib/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,4 @@ exports.asn1 = KJUR.asn1;
exports.jws = KJUR.jws;
exports.lang = KJUR.lang;

exports.readFileUTF8 = readFileUTF8;
exports.readFileHexByBin = readFileHexByBin;
exports.readFile = readFile;
exports.saveFile = saveFile;
exports.saveFileBinByHex = saveFileBinByHex;

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsrsasign",
"version": "5.1.0",
"version": "6.0.0",
"description": "opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK).",
"main": "lib/jsrsasign.js",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions npm_util/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
all:
echo aaa

aaa:
cat \
lib/header.js \
../min/nodeutil-1.0.min.js \
lib/footer.js \
> lib/jsrsasign-util.js

26 changes: 26 additions & 0 deletions npm_util/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
jsrsasign-util
=========

This package provides supplementary functions for 'jsrsasign' such like file I/O utilities.

Public page is http://kjur.github.com/jsrsasign .

[github TOP](http://kjur.github.io/jsrsasign/)|[API doc](http://kjur.github.io/jsrsasign/api/)|[Wiki](https://github.com/kjur/jsrsasign/wiki)|[Node sample](https://github.com/kjur/jsrsasign/tree/master/sample_node)

AVAILABLE FUNCTIONS
-----------------------------

- [readFile](http://kjur.github.io/jsrsasign/api/symbols/global__.html#readFile) : read file as binary string
- [readFileHexByBin](http://kjur.github.io/jsrsasign/api/symbols/global__.html#readFileHexByBin) : read file as binary then convert it to hexadecimal string
- [readFileUTF8](http://kjur.github.io/jsrsasign/api/symbols/global__.html#readFileUTF8) : read file as UTF-8 string
- [saveFile](http://kjur.github.io/jsrsasign/api/symbols/global__.html#saveFile) : save file as binary string
- [saveFileBinByHex](http://kjur.github.io/jsrsasign/api/symbols/global__.html#saveFileBinByHex) : convert a hexadecimal string to raw string then save it as file.

EXAMPLE(1) SIGNATURE
--------------------

> var rsu = require('jsrsasign-util');
> var rawString = rsu.readFile("bar.bin");
> rsu.saveFileBinByHex("foo.bin", "30143abb...");


7 changes: 7 additions & 0 deletions npm_util/lib/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

exports.readFileUTF8 = readFileUTF8;
exports.readFileHexByBin = readFileHexByBin;
exports.readFile = readFile;
exports.saveFile = saveFile;
exports.saveFileBinByHex = saveFileBinByHex;

2 changes: 2 additions & 0 deletions npm_util/lib/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*! jsrsasign-util-1.0.0 (c) 2016 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
11 changes: 11 additions & 0 deletions npm_util/lib/jsrsasign-util.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*! jsrsasign-util-1.0.0 (c) 2016 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
/*! nodeutil-1.0.0 (c) 2015 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
function readFileUTF8(a){return require("fs").readFileSync(a,"utf8")}function readFileHexByBin(c){var b=require("jsrsasign");var a=require("fs");return b.rstrtohex(a.readFileSync(c,"binary"))}function readFile(b){var a=require("fs");return a.readFileSync(b,"binary")}function saveFile(c,b){var a=require("fs");a.writeFileSync(c,b,"binary")}function saveFileBinByHex(e,b){var a=require("fs");var c=require("jsrsasign");var d=c.hextorstr(b);a.writeFileSync(e,d,"binary")};
exports.readFileUTF8 = readFileUTF8;
exports.readFileHexByBin = readFileHexByBin;
exports.readFile = readFile;
exports.saveFile = saveFile;
exports.saveFileBinByHex = saveFileBinByHex;

28 changes: 28 additions & 0 deletions npm_util/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "jsrsasign-util",
"version": "1.0.0",
"description": "utilities for jsrsasign (kjur.github.io/jsrsasign) such like file utilities",
"main": "lib/jsrsasign-util.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/kjur/jsrsasign.git"
},
"keywords": [
"jsrsasign", "utilities", "file"
],
"author": "Kenji Urushima",
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/kjur/jsrsasign/master/LICENSE.txt"
}
],
"bugs": {
"url": "https://github.com/kjur/jsrsasign/issues"
},
"dependencies": {
}
}

0 comments on commit 567c128

Please sign in to comment.