Move DB key encryption methods out of Cryptography.m