New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pkcs7-padding

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkcs7-padding - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

index.js
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc