![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Obfuscating text or phrases with random uncommon characters to avoid banning.
Obfuscating text or phrases with random uncommon characters to avoid banning. Everyone is free to speak as long as they do so wisely.
npm install wisely
import wisely from 'wisely';
const text = 'Palestine will be free! Freedom is the right of ALL nations!';
console.log(wisely({ text }));
// P@l3$t|n3 w!ll 83 fr33! Fr33d0m |$ t#3 r!6#t 0f @LL n4t|0n5!
console.log(wisely({ text, phrases: ['palestine', 'free'] }));
// P4l35t1n3 will be fr33! Freedom is the right of ALL nations!
const customCharSet = {
a: ['@', '4'],
e: ['3'],
i: ['1', '!'],
o: ['0'],
s: ['5', '$'],
t: ['7'],
};
console.log(wisely({ text, charSets: [customCharSet] }));
// P@l3$7!n3 w1ll b3 fr33! Fr33d0m 1$ 7h3 r1gh7 0f 4LL n@710n$!
See
options.charsets
for more details.
wisely(options)
Returns a string
with the obsfucated text.
Type: object
string
true
The text to be obscured.
string[]
false
The specific phrases to be obscured. If not specified or empty, the entire text will be obscured.
Each phrase must be less than or equal to 30 characters and only contain the following characters:
a-z
, A-Z
)0-9
)
)-
)_
)'
)/
)boolean
false
Whether to obscure in a case-sensitive manner.
(string | object)[]
['latin']
The character set that will be used for obfuscation. Put the name of the built-in character sets or a custom character set objects.
The valid custom character set must be an object that contains key-value pairs where:
a-z
, A-Z
).See the example below.
const customCharSet = {
a: ['@', '4'],
e: ['3'],
i: ['1', '!'],
o: ['0'],
s: ['5', '$'],
t: ['7'],
};
isCharSetValid(charSet)
Returns a boolean
whether the character set is valid.
Type: object
The character set that will be checked.
mergeCharSets(...charSets)
Returns a merged character set object.
Type: string | object
The character set that will be merged. Put the name of the built-in character sets or a custom character set objects.
Below is the built-in character sets available. See the details of each character set in the charsets directory.
charSet Name | Block Name | Block Range |
---|---|---|
latin | Basic Latin | \u0000 - \u007f |
latin-1 | Latin-1 Supplement | \u0080 - \u00ff |
latin-ext-a | Latin Extended-A | \u0100 - \u017f |
latin-ext-b | Latin Extended-B | \u0180 - \u024f |
Give a ⭐️ if this project helped you!
Also please consider supporting this project by becoming a sponsor. Your donation will help us to maintain and develop this project and provide you with better support.
FAQs
Obfuscating text or phrases with random uncommon characters to avoid banning.
The npm package wisely receives a total of 0 weekly downloads. As such, wisely popularity was classified as not popular.
We found that wisely demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.