<?php

namespace Velis\Crypt\Facade;

use Velis\App;
use Velis\Crypt\Interface\CryptInterface;

final class Crypt
{
    public static function encrypt(string $plaintext): string
    {
        return App::getService(CryptInterface::class)->encrypt($plaintext);
    }

    public static function decrypt(string $payload): string
    {
        return App::getService(CryptInterface::class)->decrypt($payload);
    }
}
