Added options for custom encryption context, magic, cipher, simple password/salt.