read = false;
String key1_str = result.getEngine().getId() + ":" + result.getName();
try{
byte[] sha1 = new SHA1Simple().calculateHash( key1_str.getBytes( "UTF-8" ));
key1 = new byte[10];
System.arraycopy( sha1, 0, key1, 0, 10 );
}catch( Throwable e ){
Debug.printStackTrace(e);
}
String uid = result.getUID();
if ( uid != null && uid.length() > 0 ){
String key2_str = result.getEngine().getId() + ":" + uid;
try{
byte[] sha1 = new SHA1Simple().calculateHash( key2_str.getBytes( "UTF-8" ));
key2 = new byte[10];
System.arraycopy( sha1, 0, key2, 0, 10 );