Description

Base64 Test that the obj is base64 encoded if type is string

Examples

	valid := Validation{}

	if valid.Base64("[email protected]", "base64").Ok {
		t.Error("\"[email protected]\" are a valid base64 characters should be false")
	}

		t.Error("\"[email protected]\" are a valid base64 characters should be false")
	}
	if !valid.Base64("c3VjaHVhbmdqaUBnbWFpbC5jb20=", "base64").Ok {
		t.Error("\"c3VjaHVhbmdqaUBnbWFpbC5jb20=\" are a valid base64 characters should be true")
	}

Base64 is referenced in 1 repository

github.com/astaxie/beego