Cov txheej txheem:

Yuav ua li cas koj ntxiv ib qho chaw ruaj ntseg chaw nyob hauv mule?
Yuav ua li cas koj ntxiv ib qho chaw ruaj ntseg chaw nyob hauv mule?

Video: Yuav ua li cas koj ntxiv ib qho chaw ruaj ntseg chaw nyob hauv mule?

Video: Yuav ua li cas koj ntxiv ib qho chaw ruaj ntseg chaw nyob hauv mule?
Video: Tsis Muaj Peev Xwm Yuav Ua Li Cas 2024, Hlis ntuj nqeg
Anonim

Tsim lub Ntiaj Teb Kev Ruaj Ntseg Qhov Chaw Tso Cai

  1. Nyem rau ntawm lub ntiaj teb Elements tab. Xaiv Ruaj Ntseg Qhov Chaw Nyob . Nyem OK.
  2. Hauv Ruaj Ntseg Qhov Chaw Nyob wizard, teeb lub Encryption Algorithm, Encryption Mode, thiab tus yuam sij. Lub Encryption Algorithm yuav zoo ib yam li koj tau siv thaum lub sijhawm txheej txheem encryption saum toj no.

Nyob rau hauv kev hwm rau qhov no, koj yuav ua li cas ruaj ntseg hauv mule?

Ntxiv thiab Configure Secure Configuration Properties rau koj App

  1. Mus rau koj cov ntaub ntawv teeb tsa Mule app.
  2. Xaiv cov khoom thoob ntiaj teb tab.
  3. Nyem Tsim.
  4. Xaiv Secure Properties Config.
  5. Configure lub ntiaj teb no lub caij nrog ib tug ntaub ntawv qhov chaw, Ntsiab, algorithm, hom, ntaub ntawv qib encryption, thiab encoding.
  6. Nyem OK.

Ib yam li ntawd, kuv yuav encrypt thiab decrypt password li cas hauv mule? properties - Txoj cai nyem rau ntawm cov ntaub ntawv cov khoom thiab qhib nrog Mule Properties Editor. 4. Ob npaug nias rau ntawm qhov tseem ceeb uas koj xav tau encryption ( Cov passwords teb) - Nkag mus / Decryption kev xaiv yuav muaj.

Ntawm no, yuav ua li cas kuv saib cov ntaub ntawv khoom hauv mule?

Yuav Ua Li Cas Nyeem Cov Ntaub Ntawv Cov Ntaub Ntawv Hauv Mule

  1. Ua ntej tsim cov ntaub ntawv nrog.properties extension (yuav ua tau txawv extension tab sis pom zoo) nyob rau hauv src/main/resources #first-lub xeem lub npe ua ke Jane = Doe John = Mavis.
  2. Tsim ib lub ntiaj teb no rau cov ntaub ntawv khoom.
  3. Siv ${} - "${Jane}"
  4. Siv p() - p("Jane")

Dab tsi yog Property placeholder hauv mule?

ruaj ntseg Qhov Chaw Chaw yog tus txheej txheem tseem ceeb rau kev khaws peb cov ntaub ntawv rhiab zoo li Tus Neeg Siv ID thiab Password ruaj ntseg (encrypted/cypher-text) hauv Khoom ntaub ntawv. Cov ntaub ntawv yog khaws cia rau hauv lub vaj tse ntaub ntawv raws li tus nqi tseem ceeb khub. Qhov no vaj tse cov ntaub ntawv tuaj yeem khaws cov ntaub ntawv xws li User ID, Password, Tokens, Keys thiab lwm yam.

Pom zoo: