pkcs7-padding
Advanced tools
Comparing version 0.1.0 to 0.1.1
var DEF_PAD_LENGTH = 16; | ||
/** | ||
* Append PKCS#7 padding to an buffer or a string. | ||
* Append PKCS#7 padding to a buffer or a string. | ||
* | ||
@@ -45,3 +45,3 @@ * @see {@link http://tools.ietf.org/html/rfc5652|RFC 5652 section 6.3} | ||
/** | ||
* Remove the PKCS#7 padding from an buffer or a string. | ||
* Remove the PKCS#7 padding from a buffer or a string. | ||
* | ||
@@ -48,0 +48,0 @@ * @see {@link http://tools.ietf.org/html/rfc5652|RFC 5652 section 6.3} |
{ | ||
"name": "pkcs7-padding", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A tiny package that handles PKCS #7 padding for both strings and byte arrays", | ||
@@ -19,3 +19,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"jasmine": "^3.1.0" | ||
"jasmine": "^3.2.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "repository": { |
@@ -13,3 +13,3 @@ # pkcs7-padding | ||
``` | ||
```javascript | ||
var pkcs7 = require('pkcs7-padding'); | ||
@@ -27,3 +27,3 @@ | ||
``` | ||
```javascript | ||
try { | ||
@@ -39,3 +39,3 @@ var raw = pkcs7.unpad(data); | ||
``` | ||
```javascript | ||
var pkcs7 = require('pkcs7-padding'); | ||
@@ -51,5 +51,5 @@ | ||
The default block size is set to **16 bytes**.<br> | ||
The maximum block size if 255 bytes. | ||
The maximum block size is 255 bytes. | ||
``` | ||
```javascript | ||
var pkcs7 = require('pkcs7-padding'); | ||
@@ -56,0 +56,0 @@ |
6104