Detached database CMD5 differ if original database is encrypted

My issue is that, when I attach plain database to encrypted one then copy data from encrypted to plain I get plain file with MD5 differ from file created if I attach the plain database to unencrypted version of the database. “Althoght data is identical”

using https://www.zetetic.net/sqlcipher/sqlcipher-api/#attach Example3