unix-crypt-td-js is a JavaScript implementation of the DES-based Unix crypt(3) password hashing algorithm, primarily based on the `crypt.c` source from the Seventh Edition Unix distribution. The package's current stable version is 1.1.4, with its last known publication to npm occurring in October 2019. Despite its historical accuracy in replicating the original Unix `crypt(3)` behavior, the underlying Data Encryption Standard (DES) algorithm is now considered cryptographically insecure. It utilizes a 56-bit key and only the first eight characters of a password, combined with a 12-bit salt, making it highly susceptible to modern brute-force attacks, dictionary attacks, and rainbow table attacks. The package is effectively unmaintained, with Snyk reporting an 'Inactive' maintenance status and limited community activity. Due to these fundamental security weaknesses and lack of ongoing development, it is unsuitable for securing sensitive data or user passwords in contemporary applications. Developers requiring secure password hashing should use modern, robust algorithms like bcrypt, scrypt, or Argon2, which are designed to resist current cryptanalytic techniques. The package has no active release cadence.
npm install unix-crypt-td-jsVerified import paths — ran on the pinned version, not inferred.
Demonstrates hashing a password with a given salt, including handling byte array inputs and showing the 8-character password truncation.
Do not use this package for securing sensitive data, especially user passwords. Migrate to modern, robust hashing algorithms like bcrypt, scrypt, or Argon2.
Developers must be aware of this limitation and either enforce an 8-character password policy (not recommended for security) or, preferably, switch to a secure hashing algorithm that utilizes the full password length.
Avoid using this algorithm. Modern password hashing schemes use much larger, randomly generated salts to protect against precomputation attacks and ensure each hash is unique.
It is strongly recommended to use actively maintained, cryptographically secure libraries for any security-sensitive operations.
Immediately replace `unix-crypt-td-js` with a modern, secure password hashing library such as `bcrypt`, `scrypt-js`, or `argon2`.
This is an inherent limitation of the algorithm. If full password entropy is required, you *must* switch to a different hashing algorithm that supports and utilizes longer passwords.
No dependency data recorded yet.