armor/dearmor and test, TODO for logger