Add support for export/import of secret key. Rename encryptResource to encryptData. Add encryptBlob