Extracted functionality of *text, added key class
Replaced IKey with Key and IV