Skip to content
Snippets Groups Projects
Commit 40c1c56d authored by Éloïs's avatar Éloïs
Browse files

[ref] sha256: use duniteroxyde to compute sha256 hash

parent 9618367d
Branches
Tags
1 merge request!1292Feature/oxyde crypto
......@@ -11,12 +11,8 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
import * as crypto from 'crypto'
import {sha256} from 'duniteroxyde'
export const hashf = function hashf(str:string) {
return crypto
.createHash("sha256")
.update(str)
.digest("hex")
.toUpperCase()
return sha256(str)
}
......@@ -71,7 +71,7 @@
"cors": "2.8.2",
"daemonize2": "0.4.2",
"ddos": "0.1.16",
"duniteroxyde": "0.1.0",
"duniteroxyde": "0.2.0",
"errorhandler": "1.5.0",
"event-stream": "3.3.4",
"express": "4.15.2",
......
......@@ -1495,10 +1495,10 @@ doctrine@^2.1.0:
dependencies:
esutils "^2.0.2"
duniteroxyde@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/duniteroxyde/-/duniteroxyde-0.1.0.tgz#acc06fb7ac6e269a5d8b25f09c5d48088a087917"
integrity sha512-EDfxKlVhJrUyuWd9gBNHC1wrQ6Zc6z5JYR1LQf4yhW6N/LNPzM3S0uI95gWeSyNqwSlIiLiIOMoRxJenozqH4g==
duniteroxyde@0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/duniteroxyde/-/duniteroxyde-0.2.0.tgz#5f84de3f92e91c5c65406c710a36dd47d2bde4b0"
integrity sha512-jMOD74/ajxn8sOHaCUzQ1wgoKcLBTpHeCdMGolqJxRoA+22fQdoQFJvUbRBo/T50sjcHvF51TPofig1S0Gg+6w==
dependencies:
neon-cli "^0.4.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment