mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 01:03:26 +00:00
added files
This commit is contained in:
15
examples/exmple_var_encryption/main.cpp
Normal file
15
examples/exmple_var_encryption/main.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Created by orange on 24.02.2026.
|
||||
//
|
||||
#include "omath/containers/encrypted_variable.hpp"
|
||||
#include <omath/omath.hpp>
|
||||
#include <print>
|
||||
int main()
|
||||
{
|
||||
OMATH_DEF_CRYPT_VAR(int, 64) var{5};
|
||||
var.encrypt();
|
||||
std::println("{}", var.value());
|
||||
var.decrypt();
|
||||
std::println("{}", var.value());
|
||||
return var.value();
|
||||
}
|
||||
Reference in New Issue
Block a user