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}")

Want to kickstart your project?Use the new AI Studio to create your code