(Sorry, I initially misunderstood the requirements, considering it to be INPUT data, which should be 6 bytes.)
I do not think that you can do exactly what you want with standard cryptographic algorithms:
- , , , XORing ; , (, , XORing , XORing , 48 2 48 , );
- , , , 48 .
, 48- - - , , - , , .
:
- 48- ; , TripleDES 64- "" ( 112- ) [*];
- , , , , . Feistel, - , . Schneier, "Applied Cryptography", . 346ff, " ".
, whist , , ; .
(, , , ), , -, , ( - , , , , ). , Feistel , , .
[*] TripleDES , AES ( , Java, , ). .
, "" , ( , ), . ( padding mode, .)