You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: encryption.go
    path of file: ./repos/evcc/vehicle/saic/requests
    
    the code of the file until where you have to start completion: package requests

import (
	"strconv"
	"strings"
)

func CalculateRequestVerification(
	resourcePath string,
	sendDate int64,
	tenant,
	contentType,
	bodyEncrypt
    
func EncryptRequest(url string, time int64, tenant, token, body, contentType string) string {
	sendDate := strconv.FormatInt(time, 10)
	// tenant
	replace := ""
	if len(url) != 0 {
		replace = strings.Replace(url, BASE_URL_P, "/", -1)
	}

	encryptedBody := ""

	if len(body) != 0 {
		sb3 := Md5(replace+tenant+token+USER_TYPE) + sendDate + CONTENT_ENCRYPTED + contentType
		a2 := Md5(sb3)
		a3 := Md5(sendDate)
		if len(body) != 0 && len(a2) != 0 && len(a3) != 0 {
			encryptedBody = Encrypt(body, a2, a3)
		}
	}

	return encryptedBody
}