add decrypt for older messages
fix input style
add test
update test with check function
Finish 0.3.3