一個django模型字段,在保存到數(shù)據(jù)庫時對數(shù)據(jù)進行加密,在從數(shù)據(jù)庫獲取數(shù)據(jù)時進行解密。它使數(shù)據(jù)庫中的數(shù)據(jù)始終加密。
在北林等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計、成都網(wǎng)站建設(shè) 網(wǎng)站設(shè)計制作按需設(shè)計,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,營銷型網(wǎng)站建設(shè),成都外貿(mào)網(wǎng)站建設(shè)公司,北林網(wǎng)站建設(shè)費用合理。
A Django model fields collection that encrypt your data when save to and decrypt when get from database. It keeps data always encrypted in database. Base on AES, it supports query method likeget()
andfilter()
in Django.
Mirage can also migrate data from origin column to encrypted column in database with a good performance.
需要導(dǎo)入的模塊為;
from mirage.crypto import Crypto