---
name: "ns_crypt"
section: "3aolserver"
platform: "linux"
package: "aolserver4-dev"
version: "4.5.1-18.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ns_crypt/3aolserver"
---

# ns\_crypt(3aolserver)

commands

## NAME

ns\_crypt - commands

## SYNOPSIS

**ns\_crypt** *key salt*

## DESCRIPTION

*ns\_crypt encrypted the*  *key,*  *also known as the*  *password,* *using the*  *salt*  *and returns the result.  It uses the same algorithm as the unix crypt command.* *The result from ns\_crypt is a 13-character string.  The first two*  *characters correspond to the salt, and the remaining eleven characters* *correspond to the*  *password*  *encrypted with the specified*  *salt.* *The* *password* *is a string (typically that of a password to be used for*  *nscp and/or nsperm authentication).* *salt*  *should be two characters, typically from the set \[a-zA-Z0-9./\].* *If the empty string is specified as the*  *salt*  *then ns\_crypt returns the empty string.  If a string longer than two*  *characters is specified for the*  *salt*  *it is truncated to two characters.  If a one character* *salt*  *is provided the output will appear to have a two-character* *salt (the single character repeated), however, the encrypted value* **does not**  *correspond to the same*  *password*  *being encrypted* *with the equivalent two character*  *salt.*  *(As a result sticking with a two character salt is highly recommended.)* *Input to ns\_crypt*  **is** *case-sensitive.*

## EXAMPLES

 *nscp\> ns\_crypt aolserver ns*\
  *ns0WvClsyIL4A*

 *nscp\> ns\_crypt aolserver NS*\
  *NSDQ1dPM.409Q*

 *nscp\> ns\_crypt aolserver tcl*\
  *tcAbgtlzbEhVc*

 *nscp\> ns\_crypt aolserver tc*\
  *tcAbgtlzbEhVc*

 *nscp\> ns\_crypt aolserver ..*\
  *..7TNvXHLxJ9Y*

 *nscp\> ns\_crypt aolserver .*\
  *..fwmBaZuzrRs*

## SEE ALSO

*nsd(1), [info(n)](/info/n.md), nscp, nsperm, [crypt(3)](/crypt/3.md)*

## KEYWORDS
