API changes. Refactor. Added experimental encrypt/decrypt support
match host algorithm isolated