# Migrate from scrypt to sha256\. \(\#8969\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/75a42c27db119305df4278f77d742fb62acf321a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 75a42c27db119305df4278f77d742fb62acf321a

Requested commit: 75a42c27db119305df4278f77d742fb62acf321a

Commit: 75a42c27db119305df4278f77d742fb62acf321a

Tree: 7b5e908fecddf95f57fd87fcc440012e113ce13c

Author: Conrad Irwin

Committer: GitHub

## Message

```
Migrate from scrypt to sha256. (#8969)

This reduces the server time to compute the hash from 40ms to 5µs,
which should remove this as a noticable chunk of CPU time in production.

(An attacker who has access to our database will now need only 10^54
years of CPU time instead of 10^58 to brute force a token).

Release Notes:

- Improved sign in latency by 40ms.
```

## Parents

- [4d2156e2ad700d10c756bd88d3dfc3b382e39a87](https://git.cafe/gitcafe/zed/commit/4d2156e2ad700d10c756bd88d3dfc3b382e39a87?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/75a42c27db119305df4278f77d742fb62acf321a?format=markdown)
