Encryption with hardware and software has different output.I guess that is ok. In fact that is how it should be. Normally due to random salting you get different output.
When you do decryption,, decryption should work if both hard ware and software uses same salting mechanism