diff --git a/Gruntfile.js b/Gruntfile.js
index 73541387..6eff3230 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -40,7 +40,7 @@ module.exports = function(grunt) {
dest: ['dist/openpgp.js'],
replacements: [{
from: /OpenPGP.js VERSION/g,
- to: 'OpenPGP.js v<%= pkg.version %>.<%= grunt.template.today("yyyymmdd") %>'
+ to: 'OpenPGP.js v<%= pkg.version %>'
}]
},
openpgp_nodebug: {
@@ -48,7 +48,7 @@ module.exports = function(grunt) {
dest: ['dist/openpgp_nodebug.js'],
replacements: [{
from: /OpenPGP.js VERSION/g,
- to: 'OpenPGP.js v<%= pkg.version %>.<%= grunt.template.today("yyyymmdd") %>'
+ to: 'OpenPGP.js v<%= pkg.version %>'
}]
}
},
diff --git a/README.md b/README.md
index 7e2ae438..ff2949a5 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,12 @@ You can download a prebuilt minified version of the library under [releases](htt
Then take `dist/openpgp.min.js` to use in your project.
#Usage
-It's best the check the documentation for detailed API information. There are also alot of useful examples under 'test/'. You can run the tests by calling:
+ // read public key
+ var pub_key = openpgp.key.readArmored($('#pubkey').text());
+ // sign and encrypt message
+ var pgp_message = openpgp.encryptMessage(pub_key.keys, $('#message').val());
+
+It's best to check the documentation for detailed API information. There are also alot of useful examples under 'test/'. You can run the tests by calling:
npm install && npm test
## Documentation
diff --git a/example/example.html b/example/example.html
index 12d7f23e..e52e509f 100644
--- a/example/example.html
+++ b/example/example.html
@@ -65,6 +65,7 @@ z8jl9UymAkoTcsVWRVr5PKR0zsCxaNV3w5hv6j12+US7mEWe2kuD
-----END PGP PUBLIC KEY BLOCK-----
+