Esempio n. 1
0
        public async Task <bool> Registration([FromRoute] string username, [FromBody] KeyDto pass)
        {
            var privateKeyBase64 = KryptTry2.privateKeyBase64;

            _userService.RegisterUser(username, pass, privateKeyBase64);

            return(true);
        }
Esempio n. 2
0
        public async Task <bool> Login([FromRoute] string username, [FromBody] KeyDto pass)
        {
            //var g = _dp.Get<string>("Insert Into public.user", null, CommandType.Text);
            var keyString = KeyCreation.GenerateKeys();

            KryptTry2.GetPublicKey(keyString);
            return(true);
        }