Why the decrypted key is not the same as the encrypted key? : I wrote function to encrypt or to decrypt a word
Why the decrypted key is not the same as the encrypted key ?

    function cryptage(action, password) {
        var method = "AES-256-CBC";
        if(action=="encrypt") {
            var cipher = crypto.createCipher(method,password)
            var crypted = cipher.update(password,'utf8','hex')
            crypted += cipher.final('hex');
            return crypted;
        } else if (action=="decrypt") {
            var decipher = crypto.createDecipher(method,password)
            decipher.setAutoPadding(false);
            var decrypted = decipher.update(password,'hex','utf8')
            decrypted += decipher.final('utf8');
            return decrypted;
        }
    }

When I call `var crypted = cryptage("encrypt", "test")`, it returns me 

> cc1fbd73cb93106c3358636ff619bdbd

When I call `cryptage("decrypt", crypted)`, it returns me exactly  

> Te�~��IӠ~{ }m

but no "text". Why ?