Feature/extract encrypt method

Depends on PR #14