From 4e039cff44b88025bced418278656b13809e11b7 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 21 Nov 2016 14:34:15 +0000 Subject: [PATCH] Add basic sql functions for crypto --- sql/funcs.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/sql/funcs.go b/sql/funcs.go index 369d2acb..def36d74 100644 --- a/sql/funcs.go +++ b/sql/funcs.go @@ -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, + }, }