How to use the SHA224 function from crypto-js

Find comprehensive JavaScript crypto-js.SHA224 code examples handpicked from public code repositorys.

126
127
128
129
130
131
132
133
134
135
},
SHA256: function(data, secret) {
  return CryptoJS.SHA256(secret + data);
},
SHA224: function(data, secret) {
  return CryptoJS.SHA224(secret + data);
},

SHA3: function(data, secret) {
  return Telepathy.algorithms.SHA3_512(data, secret);
fork icon0
star icon6
watch icon3

+ 9 other calls in file

44
45
46
47
48
49
50
51
52
53
  }
};

// SHA224 哈希加密
export const encryptSHA224 = message => {
  return CryptoJS.SHA224(message).toString();
};
// 加密解密 des
export const encryptDesEcb = message => {
  const key = DES_KEY;
fork icon0
star icon3
watch icon2

59
60
61
62
63
64
65
66
67
68
},
sha1() {
  return CryptoJS.SHA1(this.text).toString();
},
sha224() {
  return CryptoJS.SHA224(this.text).toString();
},
sha256() {
  return CryptoJS.SHA256(this.text).toString();
},
fork icon0
star icon1
watch icon1

+ 17 other calls in file

143
144
145
146
147
148
149
150
151
152
if (err) {
    console.log('Ошибка при подключении к базе данных по адресу: ' + url);
    return res.status(400).send();
}
const db = databases.db('fs');
var passw = CryptoJS.SHA224(req.body.password).toString();
db.collection('users').find({ 'info.password': CryptoJS.SHA224(req.body.password).toString() },
    { info: true, token: true }).toArray((error, users) => {
        if (error) return res.status(400).send();
        if (users.length == 0) {
fork icon2
star icon0
watch icon0

+ 5 other calls in file

22
23
24
25
26
27
28
29
30
31
  const verified = Message(msg).verify(address, signature);
  return verified;
};

const getSHA224 = msg => {
  return CryptoJS.SHA224(msg).toString();
};
const getSHA256 = msg => {
  return CryptoJS.SHA256(msg).toString();
};
fork icon1
star icon0
watch icon0

24
25
26
27
28
29
30
31
32
33
function sha1(s) {
    return CryptoJS.SHA1(s).toString();
}

function sha224(s) {
    return CryptoJS.SHA224(s).toString();
}

function sha256(s) {
    return CryptoJS.SHA256(s).toString();
fork icon0
star icon0
watch icon1