Codice PHP:
$r mysql_query("select * from tabella");
while (
$row mysql_fetch_array($r)) {
    
$crypt md5(md5(md5($row['campo'])));
    
$r2 mysql_query("insert into tabella2 ('campo') values ('$crypt')");

Dato l'orario potrebbe esserci qualche errore sintattico ^_^