hack/examples/security/main.cpp

26 lines
624 B
C++
Raw Normal View History

2023-08-14 11:02:39 +03:00
#include <array>
#include "hack/logger/logger.hpp"
#include "hack/security/uuid.hpp"
#include "hack/security/is_link.hpp"
#include "hack/security/is_string.hpp"
#include "hack/security/validate_email.hpp"
auto main(int argc, char *argv[]) -> int
{
auto uuid = hack::security::generate_uuid();
hack::log()(uuid);
hack::log()(hack::security::validate_uuid(uuid));
std::string url = "https://google.com";
hack::log()(hack::security::is_link(url));
hack::log()(hack::security::is_string<decltype (url)>::value);
std::string email = "asdf@asdf.com";
hack::log()(hack::security::validate_email(email));;
}