Exemplo n.º 1
0
        public IActionResult CryptifyDemo()
        {
            Cryptify crypt = new Cryptify("YOUR_HASH_HERE");
            string   val   = crypt.encode("Secret Message");
            string   rtn   = crypt.decode(val);

            return(Ok(rtn + " ==>>" + val));
        }
Exemplo n.º 2
0
        public IActionResult CryptifyFileDemo()
        {
            Cryptify crypt = new Cryptify("YOUR_HASH_HERE");

            var success1 = crypt.AES_Encrypt("C:\\temp\\test.txt", "password", null, false);
            var success2 = crypt.AES_Decrypt("C:\\temp\\test.txt.aes", "password", "C:\\temp\\test_decrpyted.txt", false);

            return(StatusCode(success1.code, success1.message));
        }