// Decrypt decrypting encrypted string to be readable data
Decrypt decrypting encrypted string to be readable data
// Decrypt decrypting encrypted string to be readable data
func Decrypt(encrypted string, clientID string, secretKey string) (string, error) {
	parsedString := doubleDecrypt(encrypted, clientID, secretKey)
	var lst = strings.SplitN(parsedString, ".", 2)
	if len(lst) < 2 {
		return "", errors.New("bniEnc: parsing error, wrong cid or sck or invalid data")
	}
	return lst[1], nil
}
func Decrypt ( encrypted string , clientID string , secretKey string ) ( string , error ) { parsedString := doubleDecrypt ( encrypted , clientID , secretKey ) var lst = strings . SplitN ( parsedString , " " , 2 ) if len ( lst ) < 2 { return " " , errors . New ( " " ) } return lst [ 1 ] , nil }
Decrypt decrypting encrypted string to be readable data
Decrypt decrypting encrypted string to be readable data