Can someone tell me why this does not work?

Code:
/*
 * Main.java
 *
 * Created on April 13, 2007, 8:21 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package codexcheck;

import com.sun.org.apache.bcel.internal.util.ByteSequence;
import java.util.Random;
import java.util.*;
import java.net.PasswordAuthentication;
import java.security.*;
import javax.crypto.*;
import javax.crypto.Cipher;
import javax.crypto.Mac;
import javax.crypto.SecretKey;
import javax.crypto.spec.DESedeKeySpec;
import javax.crypto.spec.SecretKeySpec;
/**
 *
 * @author Josh
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String somevar = "test";
        try {
            MessageDigest md = MessageDigest.getInstance("SHA");
            md.update(getRandom(25).getBytes());
            String tmpPass = md.digest().toString();
            byte[] pass = (tmpPass + getRandom(15)).getBytes();
            
            SecretKey key = new SecretKeySpec(pass, "DESede");
            byte[] source = somevar.getBytes();
            
            Cipher cipher = Cipher.getInstance("DESede");
            cipher.init(Cipher.ENCRYPT_MODE, key);
            byte[] result = cipher.doFinal(source);
            String sresult = result.toString();

            System.out.println( result ); 
            
            cipher = Cipher.getInstance("DESede");
            cipher.init(Cipher.DECRYPT_MODE, key);
            byte[] unEnc = cipher.doFinal(result);
            System.out.println(unEnc.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    public static String getRandom(int length) {
        UUID uuid = UUID.randomUUID();
        String myRandom = uuid.toString();
        return myRandom.substring(0, length);
    }
    
}
All I am trying to do is generate a random pass string, use it to encrypt some simple text, then use it again to decrypt the text, but the decrypt text is still encrypted. What am I doing wrong?