Esempio n. 1
0
        //public async Task<IActionResult> OnPostAsync()
        public void OnPost()
        {
            Key = _service.GetKeyContent(KeyIdentifier);

            // sign/validate
            Signature           = _service.Sign(KeyIdentifier, Input);
            SignatureValidation = _service.Validate(KeyIdentifier, Input, Signature);
        }
Esempio n. 2
0
        //public async Task<IActionResult> OnPostAsync()
        public void OnPost()
        {
            Key = _service.GetKeyContent(KeyIdentifier);

            // encrypt/decrypt
            Encrypted = _service.Encrypt(KeyIdentifier, Input);
            Decrypted = _service.Decrypt(KeyIdentifier, Encrypted);
        }