translateMon, 27 Feb 2023

const callbackSign = createHash('md5') .update(`${VERSTKA_SECRET}${VERSTKA_API_KEY}${materialId}${userId}${callbackUrl}`) .digest('hex');

def add(a, b) return a + b end callbackSign = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('md5'), VERSTKA_SECRET, "#{VERSTKA_API_KEY}#{materialId}#{userId}#{callbackUrl}")

Questions about programming?Chat with your personal AI assistant