Add basic sql functions for crypto

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-21 14:34:15 +00:00
parent 9136f926f7
commit 4e039cff44

View file

@ -87,6 +87,10 @@ var funcs = map[string]map[int]bool{
1: true,
},
"md5": {
1: true,
},
"mean": {
1: true,
},
@ -170,4 +174,34 @@ var funcs = map[string]map[int]bool{
0: true,
1: true,
},
// Bcrypt implementation
"bcrypt.compare": {
2: true,
},
"bcrypt.generate": {
1: true,
},
// Scrypt implementation
"scrypt.compare": {
2: true,
},
"scrypt.generate": {
1: true,
},
// Pbkdf2 implementation
"pbkdf2.compare": {
2: true,
},
"pbkdf2.generate": {
1: true,
},
}