Menu

Encrypt and Decrypt in iTop

Owen
2014-09-24
2014-09-29
  • Owen

    Owen - 2014-09-24

    Hi All,
    Have been looking at an option to encrypt the data to the database and on read decrypt. This would be for custom fields such as credentials or information requiring a higher level of security.

    Just wondering if anyone has done this at present? My thoughts were to utilise the two way mcrypt_encrypt with MCRYPT_RIJNDAEL_256, however I am not a PHP programmer so difficult for me to pin point where to possible put this.

    Either way, I think it would be a good to have some information publicly available to assist others with this. Any information would be greatly appreciated.

    Thanks
    Owen

     
  • Denis

    Denis - 2014-09-24

    Hi Owen,

    There is already a special type of attribute (AttributeEncryptedString) which can act as a drop-in replacement for any text field and encrypts/decrypts the content when writing/reading in the database. It's declared in core/attributedef.class.inc.php.

     
  • Owen

    Owen - 2014-09-29

    Hi Denis,
    Fantastic, thanks very much!

    Owen

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.