password
Hello,
Is it possible to defined an encrypted storage column? How?
Maybe my app must encrypt before storing ?
Thanks
Is it possible to defined an encrypted storage column? How?
Maybe my app must encrypt before storing ?
Thanks
QxOrm : ORM (Object Relational Mapping) C++ library - QxEntityEditor : graphic editor for QxOrm library
http://www.qxorm.com/forum/phpbb/
void my_class::setPassword(const QString & sPassword)
{
m_password = sPassword;
m_encryptedPassword = EncryptFromQStringToQByteArray(m_password); // search on google, there is a lot of encryption engine for the QByteArray type...
}QString my_class::getPassword()
{
// If you load your persistent class, you have only a value into the property "m_encryptedPassword"
if (m_password.isEmpty() && ! m_encryptedPassword.isEmpty())
{ m_password = DecryptFromQByteArrayToQString(m_encryptedPassword); }
return m_password;
}