Added encryption implementation

Rendering is not entirely right yet, please hold.