First negative index through Array
Creates an array from length and the array will have elements as [0,1,2,3,...,length - 1]
Port of the OpenBSD bcrypt_pbkdf function to pure JS
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Set a function's length property
Get utf8 byte length of string
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
Robustly get the length of a Typed Array
Get the byteLength out of a DataView, robustly.
Sort objecy keys by length
A wide-character aware text alignment function for use on the console or with fixed width fonts.
Convert values with PostCSS (e.g. ms -> s)
Read a chunk from a file
URL and cookie safe UIDs
Get the real byte length of a string.
Regular expression to detect an extended-length path.
Get and validate the raw body of a readable stream.
Get the UTF-8 byte length of a string
SHA-256, HMAC and PBKDF2 implementation with typed arrays for modern browsers and Node.js
Generate a cryptographically strong random string
Lazy-evaluating list of files, based on globs or regex patterns
No description provided.
Port of C's wcwidth() and wcswidth()
A collection of utilities for permutations. It contains useful tools to create, manage and experiment with permutations.
SQIsign post-quantum signatures: keygen, sign, verify in pure Rust
Rust bindings for the Listen Notes Podcast API
Rust library for solving tridiagonal systems of linear equations using Givens rotations
Poseidon and Poseidon2 cryptographic hash functions for Soroban smart contracts
A highly parallel Perl 5 interpreter written in Rust
The array literal of the gods
Pure-Rust AV1 codec — orphan-rebuild scaffold pending clean-room re-implementation.
A secure, high-performance messaging protocol library
A secure password generation tool based on a single master key using Argon2 and BIP-39
FASTQ inline-UMI extract + stamp. Rust port of fastp's UMI processing — full --umi_loc set (read1/read2/index1/index2/per_index/per_read): move the UMI into the read name. SE and PE.
Per-position soft-clipping profile from a BAM — Rust port of RSeQC clipping_profile.py
When reading the subdomain of an xip.io request, you will get a different value compared to a local pow request. The reason for this is that the tld length is 1 by default, but an xip.io request has a tld length of 6. This gem inserts a middleware that corrects the tld length config of rails on the fly so that you can use local and xip requests at the same time without restarting the server.
returns true if the given password has Length greater 8- characters and include: 1 uppercase, 1 lowercase, 1 digit and 1 special character, otherwise returns false.
This implementation conforms to RFC 2898, and has been tested using the test vectors in Appendix B of RFC 3962. Note, however, that while those specifications use HMAC-SHA-1, this implementation defaults to HMAC-SHA-256. (SHA-256 provides a longer bit length. In addition, NIST has stated that SHA-1 should be phased out due to concerns over recent cryptanalytic attacks.)
Taking an existing alphabetic hash (of any length), will return the next hash in sequence. If all characters in hash are rolled over, will append a new char (increase the length by 1.) [eg. 'ZZZZ' -> 'AAAAA'] [eg. 'AAAZ' -> 'AABA']
This implementation conforms to RFC 2898, and has been tested using the test vectors in Appendix B of RFC 3962. Note, however, that while those specifications use HMAC-SHA-1, this implementation defaults to HMAC-SHA-256. (SHA-256 provides a longer bit length. In addition, NIST has stated that SHA-1 should be phased out due to concerns over recent cryptanalytic attacks.)
One factorization of a graph generates length-1 sets of pairs of elements from the graph. Each set of pairings is unique and includes all elements of the array.
LimitedSessions provides two core features to handle cookie-based session expiry: 1) Rack Middleware for most session stores and 2) an ActiveRecord extension for AR-based session stores. Sessions can be expired on inactivity and/or overall session length. Works with and without Rails.
The flexible polyline encoding from heremaps is a lossy compressed representation of a list of coordinate pairs or coordinate triples. It achieves that by: 1. Reducing the decimal digits of each value. 2. Encoding only the offset from the previous point. 3. Using variable length for each coordinate delta. 4. Using 64 URL-safe characters to display the result. For more information, visit: https://github.com/heremaps/flexible-polyline
Fakemenot is an simple email validator that checks for DNS as well as uses regex functions to check the email for the right length and accepted characters. It utilizes the free Email Validator API over at mashape: https://market.mashape.com/pozzad/email-validator-1.
This gem resolves basically two problems. --- 1. MySQL for strings(VARCHAR(255)) by default has limit 255 characters. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will pass in text field more characters. So, then, probably you will get 500... --- 2. PostgreSQL. The maximum number of characters for variable unlimited length types (text, varchar) is undefined. There is a limit of size in bytes for all string types: In any case, the longest possible character string that can be stored is about 1 GB. And when developer left this attribute without any length validation, then it's possible to face with situation when user unintentionally or intentionally will try to full up your database with lots of GB of 'important' info. --- Both of this cases, I guess, are not very pleasant. This gem adds default length validation for all string attributes. Except those which are already vlidated in standart rails way.
is a Base32 encoding designed to be easier for human use and more compact. It includes 1, 8 and 9 but excludes l, v and 2. It also permutes the alphabet so that the easier characters are the ones that occur more frequently. It compactly encodes bitstrings whose length in bits is not a multiple of 8, and omits trailing padding characters
Bitfifo implements a FIFO for 1 or more bits of an Integer. This will be needed for a compression and encryption system. Could be used for any variable length integer based problems including base64 encode/decode. Includes bit reversals for LSB first or MSB first systems. No need to worry about overfill as a Bignum is used to store bits.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.