Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@whi/xor-digest
Advanced tools
xor_digest( bytes, length )
This micro-package provides a single method for reducing a Uint8Array
to the given length using an
XOR pattern.
npm i @whi/xor-digest
const { xor_digest } = require('@whi/xor-digest');
let input = new Uint8Array([
207, 39, 6, 42, 162, 2, 95, 176,
73, 215, 86, 158, 133, 121, 16, 209,
230, 217, 119, 208, 52, 155, 79, 31,
250, 159, 28, 212, 252, 178, 226, 227
]);
xor_digest( input, 4 );
// Uint8Array([ 117, 228, 217, 45 ])
Alternatively, attach xor_digest
to the native Uint8Array.prototype
as a method (xorDigest()
).
require('@whi/xor-digest').bindNative();
let input = new Uint8Array([
207, 39, 6, 42, 162, 2, 95, 176,
73, 215, 86, 158, 133, 121, 16, 209,
230, 217, 119, 208, 52, 155, 79, 31,
250, 159, 28, 212, 252, 178, 226, 227
]);
input.xorDigest( 4 );
// Uint8Array([ 117, 228, 217, 45 ])
See CONTRIBUTING.md
FAQs
Reduce a Uint8Array to a given length using an XOR pattern
We found that @whi/xor-digest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.