Key-based encryption working.