---
name: "Ns_Encrypt"
section: "3"
platform: "linux"
package: "aolserver4"
version: "4.0.10-7"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/Ns_Encrypt"
---

# Ns\_Encrypt(3)

Encrypt string using DES

```

```

## NAME

Ns\_Encrypt - Encrypt string using DES

## SYNOPSIS

```
#include "ns.h"

char *
Ns_Encrypt(char *pw, char *salt, char iobuf[ ])
```

## DESCRIPTION

- **Ns\_Encrypt**(*pw, salt, iobuf*)

  The Ns\_Encrypt function DES encrypts the specified key, perturbed by salt. The result is returned in iobuf, which should be at least NS\_ENCRYPT\_BUFSIZE bytes in size.

## SEE ALSO

nsd(1), [info(n)](/info/n.md)

## KEYWORDS
